[
https://issues.apache.org/jira/browse/PDFBOX-1051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13056736#comment-13056736
]
Thomas Chojecki commented on PDFBOX-1051:
-----------------------------------------
Hi Adam,
reading such file isn't a big deal I think. A conform reader will do it without
problems.
I try to patch the PDFParser by time.
I found one file since I using the sign feature, that could not be verified
after signing it (happend because the AcroForms-Fields was the first object
after %%EOF. So if user just sign and do not need to read the file again ;)
there won't be a problem.
sry for the sarcasm, could not resist
> Problem reading signed documents without new line after %%EOF
> -------------------------------------------------------------
>
> Key: PDFBOX-1051
> URL: https://issues.apache.org/jira/browse/PDFBOX-1051
> Project: PDFBox
> Issue Type: Bug
> Components: Writing
> Affects Versions: 1.5.0
> Reporter: Thomas Chojecki
> Attachments: newLineAfterEOF.patch
>
>
> If a document without an new line after %%EOF was signed incremental, the
> first object in the revision will be wrote directly behind the %%EOF without
> a blank or a new line
> this will look like this:
> %%EOF1 obj <<......>>
> The adobe reader can read such documents, the pdfbox skip it. I looked inside
> the pdf specification and can't find more details about such kind of
> documents, so I think this is a valid document. In case that some readers can
> handle it, I added a "new line" before writing the incremental update with
> the PDDocument.saveIncremental method.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira