pdfform.js icon indicating copy to clipboard operation
pdfform.js copied to clipboard

Error reading Field Dictionary

Open vivalafrancis opened this issue 7 years ago • 4 comments

Hi Phillip,

I noticed an issue when reading fields from PDF where the Field Dictionary (which contains the fields name and value) is the parent of the Annotation Dictionary. The current code only works when the two Dictionaries are merged together. I'm not sure how this affects the actual form filling logic though.

vivalafrancis avatar Apr 06 '18 06:04 vivalafrancis

Can you provide a test file? I'm happy to fix any issues you encounter, but without a test file it's hard for me to fix, and I can't be sure the error will never occur again.

phihag avatar Apr 06 '18 07:04 phihag

Hi Philipp,

Please find the attached test pdf. This one has Field as parent of Annot, and accoridng to what I read from Adobe's pdf reference v1.7 this is allowed.

pdffill-test.pdf

Thanks and regards

vivalafrancis avatar Apr 06 '18 08:04 vivalafrancis

Was this ever resolved?

ustincameron avatar Jul 04 '20 22:07 ustincameron

Seems to have similar problem with this file: SpellsEmpty.pdf Is this fixed? I'm on 1.0.14

gioppoluca avatar Aug 04 '23 12:08 gioppoluca