New Forum | Previous | Next | (P-PDF) Developers
Topic: Extracting Image with indexed colour space
Conf: (P-PDF) Developers, Msg: 86793
Date: 4/29/2003 08:54 PM
I can extract DCTDecoded images from a PDF file, but I am having problems with FlateDecoded images which use an indexed colour space(Image Attribute Flag value - 17). Could anyone advise me how can I proceed with an Indexed file. My aim is to extract image data from a pdf and write it into an external jpg/bmp file.
Here is what I did:
If the image is DCTDecoded use jpep lib to encode the stream and then save it, which works fine.
If the image is FlateDecoded inflate it using Zlib then pass it through libjpeg and save it, which is not working.
Am I missing out anything? Do I have to regenerate the colour map to 24-bit colour before doing any compression, how do I do it?