Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

How to get width of a text

$
0
0
Hi,

I am in need of a method which will get width of a string dynamically for any given specific font.

Using Aspose.Pdf.Generator.Pdf I had a option of "pdf.GetStringWidth()" but on warmful recommendation by Aspose Pdf team now I am using Aspose.Pdf for creating new document.

Please tell me a way to get width of text not LENGTH, width using a specific fonts.

On chat they asked me to save the document and then search using text fragment - I don't want to save document 100 times just to get width of the text I am going to add.....



Viewing all articles
Browse latest Browse all 3131

Trending Articles