You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Kamil (JIRA)" <ji...@apache.org> on 2018/04/02 10:04:00 UTC
[jira] [Updated] (PDFBOX-4176) PDImageXObject doesn't support TIFF
although JavaDoc says it does
[ https://issues.apache.org/jira/browse/PDFBOX-4176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kamil updated PDFBOX-4176:
--------------------------
Attachment: tiff.tif
> 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
> Priority: Major
> Attachments: 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-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org