Size of a text box form field

Hello,

is it possible to change the size of a text form field?

When I insert a field, it is very small.

I try to create a document, that a person can fill out with some personal data that. Then I export the document as PDF and the user fills out this PDF. But the fields are very small, so that they scroll, if the user enters more text.

In the example, I want the field to have the width of the table column.

Best regards


Attachment: Screenshot_20241108_153543_ea524a61.zip

3 Replies

AD Aravind Dharani Syncfusion Team November 11, 2024 03:27 PM UTC

Hi Max Lock,

You can change the size of the text form field in the following ways:

Using the UI Option:

  • Click the text form field and change the font size in the properties pane.

Using Programmatically:

Select the text form field and use the below code to update the size of the form field

await container.DocumentEditor.Selection.CharacterFormat.SetFontSizeAsync(20);


Regards,

Aravind D



ML Max Lock November 12, 2024 03:29 PM UTC

Hi, 

I don't think this solves my problem. If the font size is bigger, the number of characters that can be displayed are nearly the same. I want the field to use more space without increasing the font size.

Best regards



AD Aravind Dharani Syncfusion Team November 14, 2024 03:24 PM UTC

Max Lock,

In a DOCX document, text form fields do not have a width property that allows for manual adjustment. The width of the text form field is updated based on the content inside it. Therefore, we can't manually change the width of the text form field.

 

image


Regards,

Aravind D



Loader.
Up arrow icon