Hi,
I am using width = renderInfo.getFont().getWidth(renderInfo.getText()); and
length = topLine.getLength(); .... but I am not sure which one is the best to
use to get the exact width of a letter or space ....
here is a part of a pdf doc...
length 12.276474 Text |du| width 1112
length 12.276474 Text |ng| width 1112
length 4.4702454 Text |1| width 556
length 9.998993 Text | M| width 1111
plse also advice what unit would be width...
regards
Florian
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
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