Details
Description
When trying to open certain PDF files (examples attached, also any MSDS available at http://www.scbt.com/datasheet-356376.html ), an expection is thrown resulting in the file not being parsed:
java.io.IOException: java.util.zip.DataFormatException: incorrect data check
at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:83)
at org.apache.pdfbox.cos.COSInputStream.create(COSInputStream.java:78)
at org.apache.pdfbox.cos.COSStream.createInputStream(COSStream.java:160)
at org.apache.pdfbox.cos.COSStream.getUnfilteredStream(COSStream.java:143)
at org.apache.pdfbox.pdmodel.PDPage.getContents(PDPage.java:148)
at org.apache.pdfbox.pdfparser.PDFStreamParser.<init>(PDFStreamParser.java:92)
at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:450)
at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:437)
at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:148)
at org.apache.pdfbox.text.PDFTextStreamEngine.processPage(PDFTextStreamEngine.java:117)
at org.apache.pdfbox.text.PDFTextStripper.processPage(PDFTextStripper.java:367)
at org.apache.pdfbox.text.PDFTextStripper.processPages(PDFTextStripper.java:303)
at org.apache.pdfbox.text.PDFTextStripper.writeText(PDFTextStripper.java:248)
at org.apache.pdfbox.text.PDFTextStripper.getText(PDFTextStripper.java:209)
– or –
java.io.IOException: java.util.zip.DataFormatException: incorrect data check
at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:83)
at org.apache.pdfbox.cos.COSInputStream.create(COSInputStream.java:78)
at org.apache.pdfbox.cos.COSStream.createInputStream(COSStream.java:160)
at org.apache.pdfbox.cos.COSStream.getUnfilteredStream(COSStream.java:143)
at org.apache.pdfbox.pdmodel.PDPage.getContents(PDPage.java:148)
at org.apache.pdfbox.pdfparser.PDFStreamParser.<init>(PDFStreamParser.java:92)
at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:450)
at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:437)
at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:148)
at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:179)
at org.apache.pdfbox.rendering.PDFRenderer.renderPage(PDFRenderer.java:205)
at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:136)
Attachments
Attachments
Issue Links
- duplicates
-
PDFBOX-3045 File that read fine in 1.8 does not in 2.0
- Closed