You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "William Palmer (JIRA)" <ji...@apache.org> on 2013/10/29 15:42:32 UTC

[jira] [Created] (PDFBOX-1762) org.apache.pdfbox.cos.COSInteger cannot be cast to org.apache.pdfbox.util.PDFOperator

William Palmer created PDFBOX-1762:
--------------------------------------

             Summary: org.apache.pdfbox.cos.COSInteger cannot be cast to org.apache.pdfbox.util.PDFOperator
                 Key: PDFBOX-1762
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1762
             Project: PDFBox
          Issue Type: Bug
          Components: Parsing
    Affects Versions: 1.8.2
         Environment: JDK6
            Reporter: William Palmer
            Priority: Minor


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)



--
This message was sent by Atlassian JIRA
(v6.1#6144)