[
https://issues.apache.org/jira/browse/PDFBOX-4176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16422921#comment-16422921
]
Kamil commented on PDFBOX-4176:
-------------------------------
{quote}Because there's a bug in the file type detector.
{quote}
Can bug in file type detector be fixed?
{quote}There's an issue on github... if it hasn't been fixed by 2.0.10 release
time, then I'll just remove a few file types from our code copy.
{quote}
I didn't understand that. Does it mean that there is possibility to fix my
issue?
> 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
> Fix For: 2.0.10, 3.0.0 PDFBox
>
> 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: [email protected]
For additional commands, e-mail: [email protected]