Hello Everyone,
I am trying to write some code, using itext, to extract the images from a PDF. I think I'm nearly there. With some help from a previous post I can get this info for each image in the file: type:/XObject filter:[/ASCII85Decode, /FlateDecode] length:65895 height:1677 bitspercomponent:8 colorspace:[/Indexed, /DeviceRGB, 255, 35 0 R] subtype:/Image name:/im7 width:1677 And by calling PdfReader.getStreamBytes I also get the filtered byte array. As the info indicates this appears to be an indexed image. Unfortunately I cannot see how to get the colour palette to complete the image. I am hoping that someone might be able to point in the right direction. Any help would be much appreciated. Regards Nick Registered Office: 5-7 Abbey Court, Eagle Way, Sowton, Exeter, Devon, EX2 7HY Registered Number 2892803 Registered in England & Wales The information contained in this e-mail is confidential and may be subject to legal privilege. If you are not the intended recipient, you must not use, copy, distribute or disclose the e-mail or any part of its contents or take any action in reliance on it. If you have received this e-mail in error, please e-mail the sender by replying to this message. All reasonable precautions have been taken to ensure no viruses are present in this e-mail. Landmark Information Group Limited cannot accept responsibility for loss or damage arising from the use of this e-mail or attachments and recommend that you subject these to your virus checking procedures prior to use. www.landmarkinfo.co.uk ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
