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 2017/02/18 16:47:44 UTC

[jira] [Commented] (PDFBOX-3694) java.io.IOException: Image stream is empty for inline image (2)

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

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

Commit 1783572 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1783572 ]

PDFBOX-3694: warn and skip empty inline images

> java.io.IOException: Image stream is empty for inline image (2)
> ---------------------------------------------------------------
>
>                 Key: PDFBOX-3694
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3694
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 2.0.4
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>             Fix For: 2.0.5, 2.1.0
>
>
> {code}
> IOException: Image stream is empty
>     org.apache.pdfbox.pdmodel.graphics.image.SampledImageReader.getRGBImage(SampledImageReader.java:114)
>     org.apache.pdfbox.pdmodel.graphics.image.PDInlineImage.getImage(PDInlineImage.java:344)
>     org.apache.pdfbox.rendering.PageDrawer.drawImage(PageDrawer.java:986)
>     org.apache.pdfbox.contentstream.operator.graphics.BeginInlineImage.process(BeginInlineImage.java:40)
>     org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:853)
> {code}
> Unlike in PDFBOX-2237 the inline image is really empty:
> {code}
> BI
> /CS/G
> /W 2
> /H 1
> /BPC 8
> ID EI
> EI
> {code}
> Solution: warn and skip.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org