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

Tilman Hausherr resolved PDFBOX-5776.
-------------------------------------
    Fix Version/s: 2.0.31
                   3.0.2 PDFBox
                   4.0.0
         Assignee: Tilman Hausherr
       Resolution: Fixed

Fixed as suggested, thanks. 

Initially I was thinking of expanding {{hasNoFollowingBinData()}} but this is 
useless, considering this mess:
{noformat}
BI
/BPC 8/CS/RGB/DP<</Colors 3/Columns 35/Predictor 15>>/F/Fl/H 1/W 35 ID
xœcŒ¿ò÷ïOšN éîÆ
</Predictor 15
/Columns 19
/Colors 3>>
{noformat}


> 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
>            Assignee: Tilman Hausherr
>            Priority: Major
>             Fix For: 2.0.31, 3.0.2 PDFBox, 4.0.0
>
>         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: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to