Hi all, :) i'm using Itext (5.5.1) to extract some images in a existing pdf file .. i can extract almost all image (CMYK and RGB), but in some cases i have this exception :
com.itextpdf.text.exceptions.UnsupportedPdfException: The color space [/Indexed, /DeviceCMYK, 244, 274 0 R] is not supported. at com.itextpdf.text.pdf.parser.PdfImageObject.decodeImageBytes(PdfImageObject.java:323) at com.itextpdf.text.pdf.parser.PdfImageObject.<init>(PdfImageObject.java:200) at com.itextpdf.text.pdf.parser.PdfImageObject.<init>(PdfImageObject.java:169) at com.itextpdf.text.pdf.parser.ImageRenderInfo.prepareImageObject(ImageRenderInfo.java:124) at com.itextpdf.text.pdf.parser.ImageRenderInfo.getImage(ImageRenderInfo.java:114) i use the standard way for extract images implementing RenderListener class. PdfImageObject image = renderInfo.getImage(); i can't get the PdfImageObject and so the byte array of images ... is a Itext bug ? have you any idea to solve it ? thanks all Gian -- View this message in context: http://itext-general.2136553.n4.nabble.com/colorspace-exception-during-images-extraction-on-a-existing-pdf-tp4660004.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ The best possible search technologies are now affordable for all companies. Download your FREE open source Enterprise Search Engine today! Our experts will assist you in its installation for $59/mo, no commitment. Test it for FREE on our Cloud platform anytime! http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php