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

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -