Hi,

You simply draw a line at the position and length you want (moveTo, lineTo, stroke()). But you'll have to calculate / choose the position yourself. The length can be calculated with PDFont.getStringWidth(). The position is similar to the position of your text, although Y will be a bit lower.

Tilman

Am 19.11.2015 um 07:52 schrieb kevin:
Hi,everyone!


I'm a newbee and want to use the pdfbox to create the pdf document.
I have read the guide and search some sample ,but  i can't find the way to set 
the character with underline?
Anyone give me a help,thanks in advance for you advice!







---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to