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

Truncated pdf can't be repaired anymore

    Details

      Description

      Tim Allison's last test run reveals another minor regression. The truncated file attached to the ticket can't be read anymore. The issue is related to the changes made in PDFBOX-3936.

      The following exception is thrown

      java.io.IOException: Error reading stream, expected='endstream' actual='' at offset 271297
          org.apache.pdfbox.pdfparser.COSParser.parseCOSStream(COSParser.java:1078)
          org.apache.pdfbox.pdfparser.COSParser.parseFileObject(COSParser.java:821)
          org.apache.pdfbox.pdfparser.COSParser.parseObjectDynamically(COSParser.java:782)
          org.apache.pdfbox.pdfparser.COSParser.parseObjectDynamically(COSParser.java:713)
          org.apache.pdfbox.pdfparser.COSParser.parseDictObjects(COSParser.java:673)
          org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:205)
          org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:240)
          org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1012)
          org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:950)
          org.apache.pdfbox.debugger.PDFDebugger.parseDocument(PDFDebugger.java:1312)
          org.apache.pdfbox.debugger.PDFDebugger.readPDFFile(PDFDebugger.java:1233)
          org.apache.pdfbox.debugger.PDFDebugger.readPDFFile(PDFDebugger.java:1218)
          org.apache.pdfbox.debugger.PDFDebugger.main(PDFDebugger.java:1209)
      

        Attachments

          Activity

            People

            • Assignee:
              lehmi Andreas Lehmkühler
              Reporter:
              lehmi Andreas Lehmkühler
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: