java - How do I get the height of a string in PDFBox? -
i want center block of text in rectangle. using pdfont.getstringwidth
method centering horizontally. however, not see corresponding pdfont.getstringheight
method. there way height of string, taking account descenders? see getheight
method, work single character, , sounds expensive call long string.
Comments
Post a Comment