On 12/09/2011 8:58, Felix.徐 wrote:
> Hi,all
> How to I add underline or hightlight to specific area or text of a pdf 
> by iText ? Thanks!

If you have the coordinates of that specific area, then you can use 
PdfStamper and getDirectContentUnder() to add a colored rectangle under 
the existing content of that area.

Go to http://affiliate.manning.com/idevaffiliate.php?id=223_212
Download chapter 6 and read the section about PdfStamper for inspiration.

------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
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

Reply via email to