Previous | Next | (P-PDF) Developers
Topic: Re: Colour Space set indexed problem !! (Via Email)
Conf: (P-PDF) Developers, Msg: 31681
From: LeonardR
Date: 12/18/2001 01:45 AM
At 10:31 PM 12/17/2001 +1100, p-pdf-developer Listmanager wrote:
>How do I extract an image which is embedded in a PDF file with the colour
>space set to indexed ?
You extract the image data, the lookup table data, and then put
that together into a valid bitmap that you can work with.
>I am able to get the index lookup table and the image data by passing them
>through Zlib.
Good - then you've got all the information.
>I am not too sure how to convert this to a jpeg image even though I have the
>jpeg lib handy.
You need to convert from index color to "direct color" in order to
use JPEG. Or you could write the images out in an indexed color format
such as GIF.
Leonard