stephanrauh / ngx-extended-pdf-viewer

A full-blown PDF viewer for Angular 16, 17, and beyond
https://pdfviewer.net
Apache License 2.0
450 stars 167 forks source link

The stamped images, text writen is not shown in downlaoding the PDF #2312

Closed ziaKhan1995 closed 2 months ago

ziaKhan1995 commented 2 months ago

I need help! with saving the PDF after adding images or text This project is becoming wonderful but there is a bug in downloading the PDF.

When I download the PDF it does not show the stamped image, text written, or something drawn but all these are available When I Print the PDF. I need the new images stamped or text written in PDF as a blob or any other URL to upload to the server.

Note: When I download the PDF on the https://pdfviewer.net site it shows all the stamped images but not in my App. Currently, I am using the latest version which is

"ngx-extended-pdf-viewer": "^19.7.1",

Here is the video proof

ngx extended pdf editor export issue

@stephanrauh A new ticket is created (as per your request) to resolve this Bug.

stephanrauh commented 2 months ago

Can you send me a reproducer? Please build it from scratch using ng new issue2312 and ng add ngx-extended-pdf-viewer. As you've mentioned yourself, it doesn't happen on my machine (nor does it happen in the showcase), so I need your help.

Just a wild shot: are you using pdf.js-dist (https://www.npmjs.com/package/pdfjs-dist)? That's explain it. ngx-extended-pdf-viewer ships with its own fork of pdf.js. Trying to use a stock version of pdf.js usually results in all kind of errors.

stephanrauh commented 2 months ago

Before I forget: thank you very much for opening a new bug. I know it's additional work and it's annoying, but it help me a lot!

ziaKhan1995 commented 2 months ago

@stephanrauh Thank you for your support. I am going to close this ticket because the saving error was caused by the Active directory in my company computer which I am really sorry for reporting this here. I have checked on another computer which was not on the active directory and it worked there properly.

ziaKhan1995 commented 2 months ago

The issue/error was caused by the Active directory in my company computer