[
https://issues.apache.org/jira/browse/PDFBOX-2653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14303072#comment-14303072
]
Tilman Hausherr commented on PDFBOX-2653:
-----------------------------------------
Irfan Skiljan answered me and said he also gets the error message I mentioned,
but displays the data that he gets (which is none). And that newer versions of
libtiff are less forgiving on bad tiffs.
Workaround: do ximage.getRGBImage() with the PDXObjectImage image, and then
save that one in the format you want with ImageIOUtil.* utilities.
> Image extraction fails with attached PDF
> ----------------------------------------
>
> Key: PDFBOX-2653
> URL: https://issues.apache.org/jira/browse/PDFBOX-2653
> Project: PDFBox
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 1.8.8, 2.0.0
> Environment: LinuxMint 1.7 64 bits
> Reporter: Paco Avila
> Assignee: Tilman Hausherr
> Fix For: 1.8.9, 2.0.0
>
> Attachments: PDFBOX-2653-1.tiff, image.pdf
>
>
> ExtractImages failed with the following exception:
> java.lang.NullPointerException
> at
> org.apache.pdfbox.pdmodel.graphics.xobject.PDCcitt$TiffWrapper.buildHeader(PDCcitt.java:651)
> at
> org.apache.pdfbox.pdmodel.graphics.xobject.PDCcitt$TiffWrapper.<init>(PDCcitt.java:497)
> at
> org.apache.pdfbox.pdmodel.graphics.xobject.PDCcitt$TiffWrapper.<init>(PDCcitt.java:488)
> at
> org.apache.pdfbox.pdmodel.graphics.xobject.PDCcitt.write2OutputStream(PDCcitt.java:237)
> at
> org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage.write2file(PDXObjectImage.java:265)
> at
> org.apache.pdfbox.ExtractImages.processResources(ExtractImages.java:255)
> at org.apache.pdfbox.ExtractImages.extractImages(ExtractImages.java:180)
> at org.apache.pdfbox.ExtractImages.main(ExtractImages.java:80)
> at org.apache.pdfbox.PDFBox.main(PDFBox.java:62)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]