Hopding / pdf-lib

Create and modify PDF documents in any JavaScript environment
https://pdf-lib.js.org
MIT License
6.98k stars 671 forks source link

PDFDocument method pdfDoc.saveAsBase64({dataUri: true}) returning same contents even after modifying the fillable PDF. #1504

Open navdeepghai1 opened 1 year ago

navdeepghai1 commented 1 year ago

What were you trying to do?

I am trying to user iframe to embed a fillable pdf on the website and modifying it. Embedding part is working properly but I am not able to retrieve the latest changes after modify the fillable pdf.

How did you attempt to do it?

After making changes I am trying to save it using following code snippet:

let data = await this.pdfDoc.saveAsBase64({dataUri: true});

but the value of "data" variable isn't changing and got the same base64 contents each time.

What actually happened?

Not able to retrieve the modified pdf contents.

What did you expect to happen?

I want to make changes in fillable pdf and then save it to a new file.

How can we reproduce the issue?

I am modify the PDF's using browser and embedded iframe.

Quote Submission Form-1.pdf

Version

1.17.1

What environment are you running pdf-lib in?

Browser

Checklist

Additional Notes

No response

vipulparmarmt commented 11 months ago

Same issue ++1

vipulparmarmt commented 11 months ago

Have you find solution @navdeepghai1 ??