Skip to content

error when trying to fill out a form that does allow 'Filling of form fields' #1732

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

Open
2 tasks done
yosepppph opened this issue Mar 13, 2025 · 0 comments
Open
2 tasks done

Comments

@yosepppph
Copy link

yosepppph commented Mar 13, 2025

What were you trying to do?

Image

i am trying to fill out this form using pdf-lib and it does show me in adobe that i am allowed "Filling of form fields'. But it is throwing an error when trying to load the form. Error: Input document to PDFDocument.load is encrypted. You can use PDFDocument.load(..., { ignoreEncryption: true })

and when i try to use { ignoreEncryption: true }, it says it can not retrieve the fields - Error: PDF form does not contain any fields

So i am confused and stuck what the issue is and what i can do next

How did you attempt to do it?

Image

i-130 (3).pdf

What actually happened?

Not letting me fill the forms

What did you expect to happen?

be able to fill the forms and download the pdf

How can we reproduce the issue?

Image

the code is attached to reproduce it

Version

3.4.120

What environment are you running pdf-lib in?

Node

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

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

1 participant