Giampaolo Capelli wrote:
> 
> 
> My aim is to edit the pdf file adding a (rectangular) border to such
> "conceptual images".
> 
> Is there an easy way to do it with iText,
> or should I handcraft some sort of low level parsing myself?
> 

The PDF content stream says "Go to position X,Y, then perform the following
draw operations".

There is no concept of a 'region' or 'area' for this type of thing.  In some
cases, the content stream might contain a crop region, but it doesn't have
to, and if the draw operations don't need to be cropped, it's likely that it
wouldn't have a crop region.

(and oh yes - you will need to also take cropping into account if you are
going to parse the draw operations to determine a bounding box - calculate
the bounding box, then intersect that with the crop region)

--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/image-in-Flatedecode-stream-without-metadata-in-dictionary-tp3962812p3964336.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
RSA® Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
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