Description
PDImageXObject.createFromFile currently relies on file extension to select the correct factory.
Often, file extension is not set or not correct.
It should be better to use the first bytes.
I did something similar here if it can helps: https://github.com/sismics/docs/blob/master/docs-core/src/main/java/com/sismics/util/mime/MimeTypeUtil.java#L26
Attachments
Attachments
Issue Links
- is related to
-
PDFBOX-4176 PDImageXObject doesn't support TIFF although JavaDoc says it does
- Closed