You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/05/22 22:51:02 UTC

[jira] [Issue Comment Deleted] (PDFBOX-2079) Extra new line characters extracted in 1.8.5 for embedded files leading to ZipFile exception in Java 1.6

     [ https://issues.apache.org/jira/browse/PDFBOX-2079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr updated PDFBOX-2079:
------------------------------------

    Comment: was deleted

(was: The bug is in BaseParser.readUntilEndStream(). I have a solution but that one would cut off the 1-2 bytes only if they (and "endstream") are in the middle of a 2048 byte buffer, not if the sequence is across a boundary. The method has a lot of optimization for speed, which makes it complex.)

> Extra new line characters extracted in 1.8.5 for embedded files leading to ZipFile exception in Java 1.6
> --------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-2079
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2079
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.8.5, 1.8.6, 2.0.0
>            Reporter: Tim Allison
>            Assignee: Tilman Hausherr
>            Priority: Minor
>         Attachments: PDFBOX-2079-TEST_CASE.patch, embedded_zip.pdf
>
>
> For the test file I'll attach shortly, PDFBox 1.8.4 extracts 17660 bytes from an embedded zip (well, docx) file.  PDFBox 1.8.5 extracts 17662 bytes -- "\r\n" at the end of the stream.  This leads to a ZipException for ZipFile(s) in Java 1.6, but not Java 1.7. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)