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

COSParser can't detect length of stream and then PDFRenderer does not render pages at some files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.4
    • 2.0.5, 3.0.0 PDFBox
    • Parsing
    • None
    • JRE 1.8

    Description

      I have a lot of files when PDF Box can't render pages to PNG files.
      Example with one of these files in attachement.

      In result I have console log:

      jan 30, 2017 4:45:07 PM org.apache.pdfbox.pdfparser.COSParser parseCOSStream
      WARNING: The stream doesn't provide any stream length, using fallback readUntilEnd, at offset 764
      jan 30, 2017 4:45:07 PM org.apache.pdfbox.pdfparser.COSParser parseCOSStream
      WARNING: The stream doesn't provide any stream length, using fallback readUntilEnd, at offset 519350
      jan 30, 2017 4:45:08 PM org.apache.pdfbox.contentstream.PDFStreamEngine operatorException
      WARNING: Image stream is empty
      jan 30, 2017 4:45:08 PM org.apache.pdfbox.contentstream.PDFStreamEngine operatorException
      WARNING: Image stream is empty
      
      Process finished with exit code 0
      

      And white pages as result of rendering.

      Attachments

        1. pdfbox-bug.zip
          1.04 MB
          Vitaliy Parfenov

        Activity

          People

            tilman Tilman Hausherr
            vsp Vitaliy Parfenov
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: