New Forum | Previous | Next | (P-PDF) Developers
Topic: Re: Can I just dump out the TIFFs as files
Conf: (P-PDF) Developers, Msg: 56604
Date: 5/29/2002 05:20 PM
On 1 May 2001, p-pdf-developer Listmanager wrote:
> From: "Mark" I am looking through pdf files
> for text and want to dump out the graphics (uncropped). Can I just
> dump out the TIFF (ie CCITT encodings) with a simple header?
Yes you can. You would need to know enough about TIFF headers to be able
to build one that pointed at a directory, and then contained the right
information about stripping, scan lines, width, height, et cetera.
If you are going to be coding, it might be easier to just grab the bitmap
(compressed) out of the PDF and use libtiff to create the tiff image.
I have sample code that goes in the other direction (but demonstrates all
of the concepts), if you would like to have a look. Checkout the file
images.c in Panda 0.4 RC3 at http://www.stillhq.com
Let me know if you need any more help, it is certainly a worthy project.
Michael Still (email@example.com)
http://www.stillhq.com -- a whole bunch of Open Source stuff including PDF software...
"Grrrrrrr! I'm a volleyballing machine!"