Skip to content
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

Error when opening the pdf file with Adobe Acrobat Reader #19

Open
Brahim1992 opened this issue Oct 26, 2018 · 7 comments
Open

Error when opening the pdf file with Adobe Acrobat Reader #19

Brahim1992 opened this issue Oct 26, 2018 · 7 comments

Comments

@Brahim1992
Copy link

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.

@phihag
Copy link
Owner

phihag commented Oct 26, 2018

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?

@Brahim1992
Copy link
Author

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
Copy link
Author

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

@phihag
Copy link
Owner

phihag commented Nov 1, 2018

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.

@Brahim1992
Copy link
Author

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.

@leavesoftea
Copy link

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.

@khanhubgit
Copy link

khanhubgit commented Sep 11, 2019

Did anyone solve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants