If you are ONLY replacing the Image XObjects with ones that are the same dimensions - then you don't need to worry about coordinates.
If you are trying to replace them with variant sizes, then you will need to parse the content stream, track state, replace any/all relevant 'cm' operators that are responsible for assigning the final transform. Leonard On Sep 4, 2008, at 6:06 AM, Nathaniel Trevivian wrote: > Hi, > > I'm trying to replace images in a PDF with text or another image. In > order to correctly replace the image, I need to know the image X and Y > position on the page. > Obviously I can get the XObject details, and from that get the image > height and width, but no page location co-ordinates. > > How do I get those co-ordinates? > > Thanks for any help anyone can provide. > Nathan > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.1t3xt.com/docs/book.php > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php