You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Maksim (Jira)" <ji...@apache.org> on 2021/12/28 15:37:00 UTC

[jira] [Created] (PDFBOX-5353) PDDocument.importPage throw "java.util.zip.DataFormatException: invalid code lengths set" on blank page

Maksim created PDFBOX-5353:
------------------------------

             Summary: 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: 3.0.0 JBIG2, 2.0.25
            Reporter: Maksim
         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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org