Details
Description
I get the below exceptions when calling pdfDoc.getDocumentCatalog().getAllPages(). The code continues after the first exception because I've called PDDocument.load("C:/CancerSummReport_34914.pdf", true) setting the load "force" param to true. The second exception causes the code to abort.
(I will try uploading the PDF that causes this problem)
2010-09-02 16:47:47,521 [main] WARN (PDFParser.java:189) - Parsing Error, Skipping Object
java.io.IOException: Error: Expected an integer type, actual='bj'
at org.apache.pdfbox.pdfparser.BaseParser.readInt(BaseParser.java:1310)
at org.apache.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:497)
at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:179)
at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:878)
at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:843)
at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:768)
at com.xyz.framework.functionalTests.PDFBoxBug.main(PDFBoxBug.java:16)
2010-09-02 16:47:47,552 [main] WARN (BaseParser.java:215) - Invalid dictionary, found:? but expected:''
Exception in thread "main" java.lang.ClassCastException: org.apache.pdfbox.cos.COSInteger cannot be cast to org.apache.pdfbox.cos.COSDictionary
at org.apache.pdfbox.pdmodel.PDDocument.getDocumentCatalog(PDDocument.java:414)
at com.xyz.framework.functionalTests.PDFBoxBug.main(PDFBoxBug.java:18)