See TextRenderInfo.getAscentLine(), .getBaseline() and getDescentLine() - those define the coordinates.
You should be aware that depending on how the PDF is generated, there may not be a single TextRenderInfo object with text 'Approving Official'. There could be one with 'Appro' and another with 'ving' and another with 'Official' (or who knows what combination). If you are in control of the PDF generation, then not a problem. If you aren't, then you'll have to do something more fancy (something similar to what LocationTextExtractionStrategy does)... It would be nice if we could expose an abstract base class that would help with this - maybe something with a callback interface that returns the rendering of each word found or something... Just noodling on ideas here, but what if we had a callback interface like this: public void begin(); public void nextWord(WordInfo); public void nextLine(LineInfo); public void end(); The trick would be figuring out what to put into the WordInfo object... Thoughts? -- View this message in context: http://itext-general.2136553.n4.nabble.com/coordinates-of-a-text-in-pdf-tp4659833p4659840.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net 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