[ 
https://issues.apache.org/jira/browse/PDFBOX-1762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14009504#comment-14009504
 ] 

William Palmer commented on PDFBOX-1762:
----------------------------------------

Thanks for taking a look at this. I think there may be a few more files in the 
test set that are similarly broken, will try and avoid bug reports on those 
broken files.  

> 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.2#6252)

Reply via email to