Hopding / pdf-lib

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

throw an error when retrieving form fields from a pdf #1635

Open codati opened 5 months ago

codati commented 5 months ago

What were you trying to do?

list the fields of a pdf

How did you attempt to do it?

getFrom and getFields

What actually happened?

throw error Error: Expected instance of PDFName, but got instance of undefined

What did you expect to happen?

list the fields of a pdf

How can we reproduce the issue?

pdf-bug.zip

npm i
node index.js

Version

1.17.1

What environment are you running pdf-lib in?

Node

Checklist

Additional Notes

my problem seems similar to https://github.com/Hopding/pdf-lib/issues/1005