-
Notifications
You must be signed in to change notification settings - Fork 12
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
com.itextpdf.kernel.PdfException: Append mode requires a document without errors, even if recovery is possible #6
Comments
That's the exception [main] ERROR com.itextpdf.kernel.pdf.PdfReader - Error occurred while reading cross reference table. Cross reference table will be rebuilt. |
I've tried it with the sample file supplied by the OP of the question, found here. Can you the file or some similar file? The version of iText7 the OP used was 7.0.4, we use 7.1.11. So I think the bug would be fixed already. |
I agree. Look, if I try to with following code
instead of
It works ! I think useAppendModemode and preserveEncryption requires a document without errors, even if recovery is possible in itext7. |
I'll have to test if removing preserveEncyription() still works with PDF/A |
@jmarxuach can you try out if version 1.0.5.1 works, because I only removed .useAppendMode(). |
It Works !! Even if prints the exception
|
@jmarxuach your pdf file is probably damaged, can you try with a similar file? |
My Pdf file is 1,4 version and is created with https://wkhtmltopdf.org/ I can open it with acrobat reader DC and the signed PDF too. Anyway, now BatchPDFSign works even if prints the exception. My PDF file is a worst case test. I have created a release v1.0.5.1 To me, issue is solved. May be I will open a new one to remember to solve the exception print. |
Searching in google I found this that suggest there is a bug in itext7, but im not sure.
I have a PDF that throws this error, but i can't attach because is confidential.
The text was updated successfully, but these errors were encountered: