Details
Description
I run this simple program with the file in attachment (scanned OCR document from Nuance Omnipage 18)
public static void main(String[] args)
throws Exception
And with the 1.8.0 version I have this error :
java.io.IOException: Error: Expected an integer type, actual='12977[373'
at org.apache.pdfbox.pdfparser.BaseParser.readInt(BaseParser.java:1622)
at org.apache.pdfbox.pdfparser.PDFObjectStreamParser.parse(PDFObjectStreamParser.java:100)
at org.apache.pdfbox.cos.COSDocument.dereferenceObjectStreams(COSDocument.java:604)
at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:226)
at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1187)
And I have just builded the 2.0.0 from the last code source and I have this error :
java.io.IOException: Error: Expected a long type at offset 1633
at org.apache.pdfbox.pdfparser.BaseParser.readLong(BaseParser.java:1682)
at org.apache.pdfbox.pdfparser.PDFObjectStreamParser.parse(PDFObjectStreamParser.java:100)
at org.apache.pdfbox.cos.COSDocument.dereferenceObjectStreams(COSDocument.java:663)
at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:244)
at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1101)
at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1069)
Attachments
Attachments
Issue Links
- is related to
-
PDFBOX-2579 Exception in thread "main" java.io.IOException: Error: Expected a long type at offset 1029, instead got '12688(Deleted'
- Closed