Stephan, Frank wrote: > Hi, > > is it possible to find locations in PDF where a specific font is used.
Check the Font dictionaries in the Resources dictionary of the page dictionary of every page. If a font is present in that dictionary, you can write an implementation of the RenderListener interface. Get the font from the TextRenderInfo object that is passed to the renderText method. If the font name corresponds with your specific font, get the line segments (base line, ascender line, descender line). Use your RenderListener in combination with PdfReaderContentParser. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
