Measure text length in textbox widget

Product: pdfTron.NET.x64

Product Version: 11.2

Hi, I have a fix font size textbox widget. How can I find out if the value for this widget would overflow and should change font size to 0 to automatically scale the content?

Thank you.

1 Like

There isn’t a straight forward way to do this.

What do you mean by “scale the content” exactly?
If you mean the font, why not just use font size zero originally?
If you mean the field size/position itself, won’t that possibly overlap and occlude other content on the page?

1 Like

Hi, I would want to change the font size to 0 only if needed. Is there a way to measure the length of the text in the textbox?