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

org.apache.pdfbox.cos.COSInteger cannot be cast to org.apache.pdfbox.util.PDFOperator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • 1.8.2
    • None
    • Parsing
    • None
    • JDK6

    Description

      The following exception is reported for the test file (using the code samples in PDFBOX-1757 with load() and loadNonSeq())

      -http://digitalcorpora.org/corp/nps/files/govdocs1/492/492484.pdf
      java.lang.ClassCastException: org.apache.pdfbox.cos.COSInteger cannot be cast to org.apache.pdfbox.util.PDFOperator
      at org.apache.pdfbox.pdfparser.PDFStreamParser.parseNextToken(PDFStreamParser.java:371)
      -with loadnonseq
      java.io.IOException: Error: Expected an integer type, actual='n'
      at org.apache.pdfbox.pdfparser.BaseParser.readInt(BaseParser.java:1622)
      at org.apache.pdfbox.pdfparser.NonSequentialPDFParser.parseXrefObjStream(NonSequentialPDFParser.java:459)
      at org.apache.pdfbox.pdfparser.NonSequentialPDFParser.initialParse(NonSequentialPDFParser.java:359)
      at org.apache.pdfbox.pdfparser.NonSequentialPDFParser.parse(NonSequentialPDFParser.java:700)

      Attachments

        Activity

          People

            Unassigned Unassigned
            willp-bl William Palmer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: