You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/01/11 17:48:00 UTC

[jira] [Commented] (PDFBOX-5360) EOFException: Can't read 20 bytes

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

ASF subversion and git services commented on PDFBOX-5360:
---------------------------------------------------------

Commit 1896920 from Tilman Hausherr in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1896920 ]

PDFBOX-5360: allow streams smaller than 20 bytes

> EOFException: Can't read 20 bytes
> ---------------------------------
>
>                 Key: PDFBOX-5360
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5360
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.25
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Major
>              Labels: CCITTFaxDecode
>             Fix For: 2.0.26, 3.0.0 PDFBox
>
>
> {noformat}
> java.io.EOFException: Can't read 20 bytes
>     org.apache.pdfbox.filter.CCITTFaxFilter.decode(CCITTFaxFilter.java:77)
>     org.apache.pdfbox.pdmodel.graphics.image.PDInlineImage.<init>(PDInlineImage.java:90)
>     org.apache.pdfbox.contentstream.operator.graphics.BeginInlineImage.process(BeginInlineImage.java:44)
> {noformat}
> This is a valid tiny inline image (a hyphen in a type 3 font charproc stream) that is 19 bytes long in a file that I can't share. We only need to adjust the pushback.



--
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