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

Popular posts from this blog

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

ruby - unknown property method: 'wait' on EC2 windows server Instance -