Hi, 
I had the same problem. The solution is to use JAI-ImageIO to read those terric 
tiffs.
I read the image with imageio means into a BufferedImage, encode it to a byte 
array as a JPEG image and then read with iText methods into an iText Image.

ImageIO is able to read almost any (really) strange tiff image, I encode it to 
JPEG because otherwise the image will get too large (hint of Paolo) and then 
can use it again with iText.
Be aware of IIO, since it's more performant when the native libs are used as 
well.

BTW, I only use ImageIO, if one of the tiff pages is not readable correctly by 
iText.

Elmar

> I have Multipage Tiff files that contains Bitonal (Group4 Compression) and 
> JPEG color pages.  I've attempted to split
> the files into single-page TIFF and jpg files, but the memory usage was huge. 
>  Our files are >3MB.  Is it possible to 
> convert these combo TIFFs to PDF?  I have the Tiff2PDF code and it ignores 
> the color pages.
>
> Some Tiff files contain tiles which throws an exception.  I'm not sure what 
> tiles are, but is there anyway to do 
> anything with the tiled image and insert them into the PDF?
 
> Thanks,
 
> Stuart Liss

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to