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

IOException: Error: Expected a long type at offset 1218571, instead got 'xref'

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.8, 2.0.0
    • Fix Version/s: 1.8.8, 2.0.0
    • Component/s: Parsing
    • Labels:
      None

      Description

      I get this with the attached file when using the non-sequential parser only:

      Exception in thread "main" java.io.IOException: Error: Expected a long type at offset 1218571, instead got 'xref'
              at org.apache.pdfbox.pdfparser.BaseParser.readLong(BaseParser.java:1689)
      
              at org.apache.pdfbox.pdfparser.BaseParser.readObjectNumber(BaseParser.java:1617)
              at org.apache.pdfbox.pdfparser.NonSequentialPDFParser.parseXrefObjStream(NonSequentialPDFParser.java:746)
              at org.apache.pdfbox.pdfparser.NonSequentialPDFParser.parseXref(NonSequentialPDFParser.java:697)
              at org.apache.pdfbox.pdfparser.NonSequentialPDFParser.initialParse(NonSequentialPDFParser.java:480)
              at org.apache.pdfbox.pdfparser.NonSequentialPDFParser.parse(NonSequentialPDFParser.java:1013)
              at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:951)
      

        Attachments

        1. 853115.pdf
          1.34 MB
          Tilman Hausherr

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: