pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: how to set the font with underline?
Date Thu, 19 Nov 2015 06:58:31 GMT
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: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message