Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
navdeepghai1 opened this issue Aug 11, 2023 · 2 comments

Comments

@navdeepghai1
Copy link

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

  • My report includes a Short, Self Contained, Correct (Compilable) Example.
  • I have attached all PDFs, images, and other files needed to run my SSCCE.

Additional Notes

No response

@vipulparmarmt
Copy link

Same issue ++1

@vipulparmarmt
Copy link

Have you find solution @navdeepghai1 ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants