[
https://issues.apache.org/jira/browse/PDFBOX-2653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14324843#comment-14324843
]
Tilman Hausherr commented on PDFBOX-2653:
-----------------------------------------
The problem of [~monkiki] is solved, but that is just a workaround. I propose
to get rid of TIFFInputStream and save with ImageIOUtil.* instead. The CCITT
images don't have any meta info.
- in 2.0 only?
- in 1.8 too? It is not the API, it is only an example
Plus:
- less code
- won't fail for the rare case that is the core of this issue
- will produce G4 compressed b/w TIFFs
Minus:
- needs jai_imageio.jar
> 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
> Labels: CCITTFaxDecode
> 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]