[ 
https://issues.apache.org/jira/browse/PDFBOX-5776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17821476#comment-17821476
 ] 

liu edited comment on PDFBOX-5776 at 2/28/24 2:13 AM:
------------------------------------------------------

!image-2024-02-28-10-10-27-787.png|width=431,height=233!

!image-2024-02-28-10-10-55-890.png|width=430,height=185!

I try otherwise exception is thrown and will get a picture.

 

Can this exception be thrown? The data that can be rendered is rendered first, 
and the data that cannot be rendered can be printed out in the log without 
interrupting the conversion.


was (Author: JIRAUSER297279):
!image-2024-02-28-10-10-27-787.png|width=431,height=233!

!image-2024-02-28-10-10-55-890.png|width=430,height=185!

I try otherwise exception is thrown and will get a picture

> DataFormatException: invalid distance too far back
> --------------------------------------------------
>
>                 Key: PDFBOX-5776
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5776
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.30, 3.0.1 PDFBox
>            Reporter: liu
>            Priority: Major
>         Attachments: image-2024-02-28-09-53-49-944.png, 
> image-2024-02-28-10-10-27-787.png, image-2024-02-28-10-10-55-890.png, 
> image1.pdf, screenshot-1.png
>
>
> [^image1.pdf]
>  
> ^java.io.IOException: java.util.zip.DataFormatException: invalid distance too 
> far back^
>     ^at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:58)^
>     ^at 
> org.apache.pdfbox.pdmodel.graphics.image.PDInlineImage.<init>(PDInlineImage.java:90)^
>     ^at 
> org.apache.pdfbox.contentstream.operator.graphics.BeginInlineImage.process(BeginInlineImage.java:44)^
>     ^at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:966)^
>     ^at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:541)^
>     ^at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:516)^
>     ^at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:155)^
>     ^at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:284)^
>     ^at 
> org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:355)^
>     ^at 
> org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:272)^
>     ^at org.apache.pdfbox.Test.main(Test.java:289)^
> ^Caused by: java.util.zip.DataFormatException: invalid distance too far back^
>     ^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:86)^
>     ^at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:50)^
>     ^... 10 more^



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to