|AWARE [SYSTEMS]||Imaging expertise for the Delphi developer|
|TIFF and LibTiff Mailing List Archive|
LibTiff Mailing List
2006.03.28 20:29 "extracting TIFF image from PDF and decompressing with Libtiff", by Philip Watkinson
2006.03.28 20:50 "Re: extracting TIFF image from PDF and decompressing with Libtiff", by Bob Friesenhahn
2006.03.28 22:28 "Re: extracting TIFF image from PDF and decompressing with Libtiff", by Leonard Rosenthol
2006.03.29 16:33 "Re: extracting TIFF image from PDF and decompressingwith Libtiff", by Gerben Vos
> > I have a PDF file that contains a TIFF image. > > PDF files do NOT contain TIFF images. They may contain image data > that at one time in the past was a TIFF - but by the time it is > processed into a PDF, it is no longer valid TIFF data. Hence, libtiff > fails. Indeed. What you have saved to the file is probably the raw LZW- compressed image data. What you can do is construct a TIFF *around* that, if you also read the size, colour space, etc. from the PDF. For the most common ways to encode and compress images, there is a remarkable correspondence between the way TIFF and PDF encode them, so lossless conversion is often possible. But it isn't true that you can simply embed a TIFF in a PDF, nor the reverse. Gerben Vos.