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

Error reading stream, expected='endstream' actual='' in COSParser

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.0.6
    • Fix Version/s: None
    • Component/s: Parsing
    • Labels:
      None

      Description

      I got the following stacktrace with file attached:

      java.io.IOException: Error reading stream, expected='endstream' actual='' at offset 116070
      	at org.apache.pdfbox.pdfparser.COSParser.parseCOSStream(COSParser.java:1013)
      	at org.apache.pdfbox.pdfparser.COSParser.parseFileObject(COSParser.java:781)
      	at org.apache.pdfbox.pdfparser.COSParser.parseObjectDynamically(COSParser.java:742)
      	at org.apache.pdfbox.pdfparser.COSParser.parseObjectDynamically(COSParser.java:673)
      	at org.apache.pdfbox.pdfparser.COSParser.parseDictObjects(COSParser.java:633)
      	at org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:241)
      	at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:276)
      	at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1132)
      	at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1066)
      	at org.apache.tika.parser.pdf.PDFParser.parse(PDFParser.java:141)
      	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
      	... 24 more
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Giorgy Jorge Spinsanti
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: