I found what was missing, aside form jai_core and jai_coded there also is a jai_imageio (1.2). I didn't find it mentioned anywhere, but a google on jai and imageio led me to it. Including that in the classpath (and jai_core) adds TIFF readers and writers to ImageIO. There also are native libraries included, but I was able to read and write tiff without them. Some documentation on why these are present would have been nice.

Tom




On 2010-02-19 1:53, [email protected] wrote:
Tom,

FYI, I have been having a similar problem with getRGBImage() returning null, but I have not been able to get any help on it.
        I have submitted my problem on Apache JIRA as a bug at 
https://issues.apache.org/jira/browse/PDFBOX-616.  You might want to look at 
this bug report and see if your problem is the same as the one I reported.

                                                                  Alan



________________________________
From: Tom<[email protected]>
To: [email protected]
Sent: Thu, February 18, 2010 1:01:42 PM
Subject: TIFF

I've been trying to get this PDF thingy to work in a number of different ways 
now, but a combination of PDFBox and iText seems to get me closest. PDFBox will 
do the parsing, iText the writing. The only problem I currently have left ATM, 
is that I need to extract TIFF images from PDF's and save them uncompressed to 
files, even if the TIFFs inside the PDF are compressed.

Now, I've got the compressed tiff, I can save it to file using write2file, but I cannot 
get my hands on an uncompressed version of the image; the getRGBimage returns null. The 
source code says: "Returns an image of the CCITT Fax, or null if TIFFs are not 
supported. (Requires additional JAI Image filters )"

I've got jai_core-1.3.0 and jar_codec_1.3.0 included... What is missing?

Tom

Reply via email to