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

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

Commit 1828259 from [~tilman] in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1828259 ]

PDFBOX-4176: support valid TIFF files that are not processed by the TIFF 
factory; disable buggy .ARW detection; improve exception message

> PDImageXObject doesn't support TIFF although JavaDoc says it does
> -----------------------------------------------------------------
>
>                 Key: PDFBOX-4176
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4176
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.9
>            Reporter: Kamil
>            Assignee: Tilman Hausherr
>            Priority: Major
>             Fix For: 2.0.10, 3.0.0 PDFBox
>
>         Attachments: cmyk.jpeg, tiff.tif
>
>
> This code:
> {code}
> final PDImageXObject jpeg = PDImageXObject.createFromByteArray(doc, 
> IOUtils.toByteArray(new FileInputStream(tiffFile)), "tiff.tif");
> {code}
> throws:
> {code}
> java.lang.IllegalArgumentException: Image type not supported: tiff.tif
>         at 
> org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.createFromByteArray(PDImageXObject.java:351)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to