chris glace wrote: > Right, is there not a way to obtain the transformation matrix for the > image?
I think you didn't understand the answers you've already received. There is no such this as 'the' transformation matrix for the image. Have you read Fabrizio's answer? (Which was by the way very accurate!) "I don't understand exaclty what your code does but... finding the real position of an xobject is very complex. I write "real position" because a xobject can contain other xobjects and the placement could be translated and rotated (see tranformation matrix)." Please do some more reading on the Graphics state. Then you'll understand that a specific CTM you might find (for instance: the CTM used for adding an image) is RELATIVE!!! Maybe (I'd say: most certainly) that CTM doesn't reflex the "real position" because there's other CTM(s) that influence the placement somewhere higher on in the Graphics State stack. Are you really going to write iText code that parses the PDF syntax of each page, keeping track of the CTM down to the last XObject and then return the coordinates of every element? If so, please note that you'll have to publish that code as Free / Open Source Software because of the MPL/LGPL. And you'd be writing functionality that as far as I know isn't available in any free tool for the moment. If I'm wrong, please correct me and the other subscribers to this list. -- This answer is provided by 1T3XT BVBA ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/