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

Skip whitespaces when resolving a XRef

    Details

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

      Description

      Oleg Krechowetzki reported an issue with the non sequential parser via private mail. He provided a working solution and a test pdf which can't be attached due to privacy reasons.

      The following exception occurs when parsing the pdf in question using the non sequential parser:

      Caused by: java.io.IOException: Error: Expected a long type, actual='xref'
      at org.apache.pdfbox.pdfparser.BaseParser.readLong(BaseParser.java:1668)
      at org.apache.pdfbox.pdfparser.BaseParser.readObjectNumber(BaseParser.java:1598)
      at org.apache.pdfbox.pdfparser.NonSequentialPDFParser.parseXrefObjStream(NonSequentialPDFParser.java:458)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: