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

Error when opening the pdf file with Adobe Acrobat Reader

Open Brahim1992 opened this issue 7 years ago • 7 comments

Hello, I'm encountering a problem with the filled pdf file. it can't be opened with Adobe acrobat reader, and it shows me this error : There was an error opening this document. This file is damaged and could not be repaired. Can you help me with that ? Many thanks.

Brahim1992 avatar Oct 26 '18 16:10 Brahim1992

Can you upload the input and output file somewhere and link them to me? If they are private, an email to [email protected] should be sufficient. You can also use a similar file or random data; as long as this file also shows the problem.

In addition, what version of Adobe Acrobat Reader are you using? On BSD, Linux, Mac, or Windows?

phihag avatar Oct 26 '18 16:10 phihag

Hey thanks for your quick answer. I've sent you an email with the input and output pdf example. I'm using the last version of Adobe Acrobat Reader 2019.008.20080 on windows.

Brahim1992 avatar Oct 26 '18 17:10 Brahim1992

I forgot to mention that the output file can be opened properly with chrome.

Brahim1992 avatar Oct 26 '18 17:10 Brahim1992

First of all, I've fixed minipdf to actually read this file. The file uses a sparse index format for the stream of objects. I've added support for that. However, upon opening, Adobe Reader emits a warning (not an error anymore - the document is rendered) and renders the AcroForms values instead of the XFA. So there needs to be some change to the XFA generation and/or stream writing to make that work.

phihag avatar Nov 01 '18 20:11 phihag

Hey, thanks for your answer. You sent me an output file that doesn't contain any warnings or errors, can you send me the input file with the changes you made to it? because i'm trying to re-use this file as an input but i got warnings on the resulted file. Many thanks.

Brahim1992 avatar Nov 05 '18 09:11 Brahim1992

I am having this issue as well. I tried using both libraries and I get the same result. The output file opens correctly in chrome but when it is downloaded and opened in Acrobat or Reader, only the first field is displayed and is repeated in each additional field. Also, a Cannot Save Form Information dialog displays in both Reader and Acrobat.

leavesoftea avatar Feb 06 '19 20:02 leavesoftea

Did anyone solve this issue?

khanhubgit avatar Sep 11 '19 18:09 khanhubgit