Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8.12, 2.0.3
-
None
-
Windows 7 x64, JVM 1.8.0_101
Description
On the attached document, which loads and displays with Adobe Reader fine, PDDocument.load() throws the following exception:
java.io.IOException: java.util.zip.DataFormatException: invalid stored block lengths
at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:82)
at org.apache.pdfbox.cos.COSInputStream.create(COSInputStream.java:69)
at org.apache.pdfbox.cos.COSStream.createInputStream(COSStream.java:162)
at org.apache.pdfbox.pdfparser.PDFXrefStreamParser.<init>(PDFXrefStreamParser.java:56)
at org.apache.pdfbox.pdfparser.COSParser.parseXrefStream(COSParser.java:2053)
at org.apache.pdfbox.pdfparser.COSParser.parseXrefObjStream(COSParser.java:333)
at org.apache.pdfbox.pdfparser.COSParser.parseXref(COSParser.java:259)
at org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:194)
at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:252)
at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:957)
at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:913)
at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:861)
at Temp.PDFTemp.App.main(App.java:19)
Caused by: java.util.zip.DataFormatException: invalid stored block lengths
at java.util.zip.Inflater.inflateBytes(Native Method)
at java.util.zip.Inflater.inflate(Inflater.java:259)
at java.util.zip.Inflater.inflate(Inflater.java:280)
at org.apache.pdfbox.filter.FlateFilter.decompress(FlateFilter.java:107)
at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:73)
... 12 more