Get ascent and descent of a text given font and size with Aspose.PDF for java

Hello, I need to know if there’s a way to get the values of ascent and descent ​​of a text given pdf font name and size using Aspose.PDF for java.
Thanks
Fabio Parise

@fabio.parise

Can you please share a bit more details like sample PDF and expected output for our reference. We will test the scenario in our environment and address it accordingly.

I have to convert the following code written for iText 2.x to extract the same info using Aspose.PDF for Java:

protected Info getFontData(com.lowagie.text.pdf.BaseFont font, String text, float fontSize) {

this.ascent  = font.getAscentPoint ( text, fontSize );
this.descent = font.getDescentPoint( text, fontSize );
this.width   = font.getWidthPoint  ( text, fontSize );

@fabio.parise

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFJAVA-44475

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.