thaks Leonard
yes you're right! it isn't a jgp image and i can not find what type of image
is it! :/

in this way (with direct reference) i can get the byte array of image ... 

PdfReader reader = new PdfReader("filePath");
PdfObject o = reader.getPdfObject(renderInfo.getRef());
PdfStream stream = (PdfStream) o;
byte[] barray = PdfReader.getStreamBytesRaw((PRStream) stream);


but ImageIo can't read it correctly and I have not yet understand the type
of image .. 

the first hex byte are : 48 89 1c 96 8b .. not a known signature ..

Gian



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/colorspace-exception-during-images-extraction-on-a-existing-pdf-tp4660004p4660021.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
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

Reply via email to