Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-2079

Extra new line characters extracted in 1.8.5 for embedded files leading to ZipFile exception in Java 1.6

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.5, 1.8.6, 2.0.0
    • Fix Version/s: 1.8.6, 2.0.0
    • Component/s: PDModel
    • Labels:

      Description

      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.

        Attachments

        1. PDFBOX-2079-TEST_CASE.patch
          2 kB
          Tim Allison
        2. embedded_zip.pdf
          19 kB
          Tim Allison

          Issue Links

            Activity

              People

              • Assignee:
                tilman Tilman Hausherr
                Reporter:
                tallison@apache.org Tim Allison
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: