You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Adam Nichols (JIRA)" <ji...@apache.org> on 2011/06/28 23:41:32 UTC
[jira] [Resolved] (PDFBOX-1051) Problem reading signed documents
without new line after %%EOF
[ https://issues.apache.org/jira/browse/PDFBOX-1051?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adam Nichols resolved PDFBOX-1051.
----------------------------------
Resolution: Fixed
Patch applied in revision 1140857. Also added a comment to explain why we're writing out a newline.
> 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
> Assignee: Adam Nichols
> 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