[ https://issues.apache.org/jira/browse/PDFBOX-4176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16422934#comment-16422934 ]
Tilman Hausherr commented on PDFBOX-4176: ----------------------------------------- The part that it is recognized as ARW can be fixed either by the person who wrote that part, or by me (by removing the ARW file type from the list). The part "First image in tiff is not CCITT T4 or T6 compressed" cannot because PDF doesn't support color in the CCITT filter. What it means is that even if I fix the part that it isn't detected as a TIF, you still can't use the method (unless your production images are G3 or G4 compressed b/w images. > 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: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org