How to Adjust Font Size for the Text Fields in PDF Forms
Environment
Product Version | Product | Author |
---|---|---|
2023.1.314 | RadPdfViewer for WinForms | Desislava Yordanova |
Description
When a very long text is entered in a text field of a PDF form, the font size remains unchanged and the text is scrolled in the following way:
Default Font Size
Abode offers in the PDF forms text auto-sizing/shrinking functionality so the text can fit in the available box and it is fully visible. This article demonstrates a sample approach how to simulate a similar behavior:
Auto Font Size
Solution
It is possible to change the font size dynamically for the activated editor. For this purpose, it is necessary to measure the text and determine the correct size.