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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.5, 1.8.6, 2.0.0
    • 1.8.6, 2.0.0
    • PDModel

    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. embedded_zip.pdf
          19 kB
          Tim Allison
        2. PDFBOX-2079-TEST_CASE.patch
          2 kB
          Tim Allison

        Issue Links

          Activity

            People

              tilman Tilman Hausherr
              tallison Tim Allison
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: