Previous | Next | (P-PDF) What's Wrong with my PDF?
Topic: Re: decode flatedecoded images (Via Email)
Conf: (P-PDF) What's Wrong with my PDF?, Msg: 138589
From: LeonardR
Date: 8/27/2005 05:24 AM
At 12:57 AM 8/27/2005, p-pdf-whats-wrong-with-my-pdf Listmanager wrote:
>I have a problem that I need to export images from a PDF.
OK.
>I cannot use an exisiting solution.
Why not??
> So basically I managed to export the images into files.
>But what do I do with the Flatedecoded images? I can decompress them
>with the decompress function of the zlib.dll.
>Unfotunatly I still do not manage to view that Image.
What you have at this point is an array of pixels in the
specified colorspace and bits per component. It is now up to you to
turn that into some image format - be it BMP, PNG, GIF, JPEG, TIFF, etc.
In addition, you will also need to worry about colorspace
conversions. For example, if the image is in CMYK but you want to
output to PNG you will also need to convert CMYK to RGB. This is
even more fun when dealing with complex colorspaces like Separation
and DeviceN.
You have a VERY long road ahead of you...
Which brings us back to the question - why must you reinvent
the wheel??
Leonard
---------------------------------------------------------------------------
Leonard Rosenthol
Chief Technical Officer
PDF Sages, Inc. 215-938-7080 (voice)
215-938-0880 (fax)