[ 
https://issues.apache.org/jira/browse/PDFBOX-5353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr closed PDFBOX-5353.
-----------------------------------
    Resolution: Not A Bug

> PDDocument.importPage throw "java.util.zip.DataFormatException: invalid code 
> lengths set" on blank page
> -------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-5353
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5353
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.25, 3.0.0 PDFBox
>            Reporter: Maksim
>            Priority: Major
>         Attachments: invalid.pdf
>
>
> When import pdf with blank page an exception was thrown and below is the 
> relevant stack trace:
> java.util.zip.DataFormatException: invalid code lengths set
> java.io.IOException: java.util.zip.DataFormatException: invalid code lengths 
> set
>     at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:58)
>     at org.apache.pdfbox.filter.Filter.decode(Filter.java:87)
>     at org.apache.pdfbox.cos.COSInputStream.create(COSInputStream.java:83)
>     at org.apache.pdfbox.cos.COSStream.createInputStream(COSStream.java:175)
>     at org.apache.pdfbox.cos.COSStream.createInputStream(COSStream.java:169)
>     at org.apache.pdfbox.pdmodel.PDPage.getContents(PDPage.java:161)
>     at org.apache.pdfbox.pdmodel.PDDocument.importPage(PDDocument.java:678)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to