You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Guy Kroizman <Gu...@ngsoft.com> on 2012/07/11 15:47:01 UTC

right align text

Hi
I need to align some text (actually numbers) to the right.
I found the image in the following link that illustrate the issue:
http://www.solutioninn.com/image/images4/99-B-A-F-A%20%28259%29.png
 
What is the best way to do that?
 
Thanks.
Guy Kroizman

RE: right align text

Posted by Guy Kroizman <Gu...@ngsoft.com>.
Alright, found that I can use font.getStringWidth(str).
Problem solved, thanks.




Guy Kroizman
Sofware Engineer
Omer Industrial Park, Israel | Tel: +972 (0) 8 6262329 | Fax: +972 (0) 8 6262201 | Mobile: +972 (52) 8834115
www.ngsoft.com



-----Original Message-----
From: Guy Kroizman [mailto:Guy.Kroizman@ngsoft.com] 
Sent: Wednesday, July 11, 2012 4:47 PM
To: users@pdfbox.apache.org
Subject: right align text

Hi
I need to align some text (actually numbers) to the right.
I found the image in the following link that illustrate the issue:
http://www.solutioninn.com/image/images4/99-B-A-F-A%20%28259%29.png
 
What is the best way to do that?
 
Thanks.
Guy Kroizman