Skip to content

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

@yosepppph

Description

@yosepppph

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions