Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.9
-
None
-
None
Description
This code:
final PDImageXObject jpeg = PDImageXObject.createFromByteArray(doc, IOUtils.toByteArray(new FileInputStream(tiffFile)), "tiff.tif");
throws:
java.lang.IllegalArgumentException: Image type not supported: tiff.tif at org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.createFromByteArray(PDImageXObject.java:351)
Attachments
Issue Links
- relates to
-
PDFBOX-3163 PDImageXObject.createFromFile should relies on header bytes
- Closed
- links to