Lee,

jian li wrote
> I am using itext to extract images from PDF. It works well when extarct
> image attachments. but when it comes with those image composed of Paths,
> it doesn't work.  The attachment pdf contains two images which I want to
> extract.
> Does itext support paths image extraction ? or is there any solutions on
> how to rebuild images from pdf paths?

As far as I can see in PdfContentStreamProcessor.populateOperators(), no
handlers for drawing commands are defined yet. Currently, therefore, you
wont get those pdf paths. It is easy, though, to expand the parsing package
to also forward drawing commands by adding handlers in this method and using
extended listeners.

You should be aware, though, that all you'll get then are just individual
paths. You yourself will have to detect which paths belong to the same image
(and which text strings, too! Have a look at your own sample document...),
which paths are merely lines separating rows and columns of a table, which
paths are merely decorations (perhaps between page text and footer), and
which paths are marks e.g. for printers.

Regards,   Michael



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/How-to-extract-images-which-is-composed-of-Paths-tp4656260p4656261.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
iText-questions mailing list
[email protected]
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