Giovanni Virdis wrote:
> how I can get the image .The image 
> are embedded in the pdf

Let me quote from this mail in the archives:
http://www.nabble.com/Re:-Problem-with-gif-and-png-images-p21499985.html

Leonard Rosenthol wrote: "PDF only supports two types of images - JPEG 
and "raw bits".  So ANY source image format which is not JPEG is 
converted into "raw bits" - this includes BMP, TIFF, GIF, etc.   As 
such, there is NO WAY to get the EXACT ORIGINAL image back."

However, suppose we're talking about JPEG images, then there is a way to 
extract the bytes and get an image. Have a look at the following 
example: http://1t3xt.info/examples/browse/?page=example&id=421

Images are detected and turned into a java.awt.image.BufferedImage that 
is in turn resized and put back into the PDF. You could adapt the code 
and use the BufferedImage to create an image file. (How? Well, that's a 
Java AWT question, not an iText question.)
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to