|
Retrieve rendered text length: msg#00145java.lib.itext.general
Hi there, First of all let me thank you for such a great library. I'm using it more and more... ;) One question I have is if it's possible to get the length of a text rendered by itext. I'm using code like this: content.beginText(); content.setFontAndSize(fontBold, 24); content.showTextAligned(PdfContentByte.ALIGN_LEFT, "TEST", x, y, 0); content.endText(); Now I'm searching for a method, which tells me how long the generated text is (it depends obviously on the font...), so that I can use a abbreviation if it's too long. Does such a method exist or are there any hints how to implement such a method? Thanks, Thorsten ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: (no subject), Matt Benson |
|---|---|
| Next by Date: | Question about tagmap, John Meadows |
| Previous by Thread: | RTF image dpi, Cinzia |
| Next by Thread: | Re: Retrieve rendered text length, Paulo Soares |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |