Barath, Barathvaj wrote > I want to identify whether the text is underlined or not. Is there any way > that i can find out whether the text is underlined like font or fillcolor.
In contrast to the font, the color, the rendering mode, etc, being underlined or not in PDF is not a property of the drawn glyphs. Instead, a line (or fairly often a very thin rectangle) merely happens to be drawn somewhere and character glyphs happen to be above. Thus, identifying underlined text (and differentiating it from text merely drawn near some line, e.g. background material, table or text box frames) can only be done by heuristics for generic documents. Furthermore underlines usually are created using vector graphics (lines or slim rectangles), and the classes in the iText parser package currently ignore such vector graphics. Thus, iText does not allow you to recognize underlined text out of the box. If you want to extend iText to recognize underlined texts, you have to a) extend the iText parser package classes to recognize and forward vector graphics to the render listeners; and b) add heuristics to the standard render listeners (text extraction strategies) to recognize underlines and associate them with the text in question. Regards, Michael -- View this message in context: http://itext-general.2136553.n4.nabble.com/How-to-read-underline-text-from-TextRenderInfo-tp4659785p4659786.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&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