Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
16

I want to set the text field font size to adjust automatically with a maximum limit of font size 9

Community Beginner ,
Mar 29, 2024 Mar 29, 2024

Hi,

I have the option to set the font size to auto, which will adjust the font size automatically based on the text content in text fields (used in prepay forms). Alternatively, I can manually set the font size to 9 or any specific value. However, what I specifically need is to set the font size to adjust automatically within a range, with the maximum font size capped at 9. This means that the font size will automatically adjust between 1 and 9, depending on the content.

I require this functionality because sometimes I have a large multi-line text field with only a short text, such as "Hi". In such cases, the text appears excessively large on the PDF, which looks unattractive. Therefore, I want to ensure that even for short text like "Hi", the font size remains at or below 9.

TOPICS
Create PDFs , Edit and convert PDFs , Modern Acrobat , PDF , PDF forms
1.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 29, 2024 Mar 29, 2024

You could do it with a script, by using the number of characters in the field for reference, for example if characters are between 1-5 set size to 9 if between 6-10 set size to 8...etc you can do it using textSize property like this validate script:

var str = event.value;
if(str.length >=1 && str.length <=5)
event.target.textSize = 9;
else if(str.length >=6 && str.length <=10)
event.target.textSize = 8;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 29, 2024 Mar 29, 2024

Hi, that approach won't work for my situation. I have various text fields of different sizes, and the inserted data lengths vary as well.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 29, 2024 Mar 29, 2024

So what are your conditions for text size?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 06, 2024 Apr 06, 2024

I would appreciate it if Adobe could implement an automatic text field font sizing feature with adjustable parameters. For instance, allowing to set the font size to automatically adjust within a range, such as between sizes 3 and 9. This would greatly enhance usability.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 09, 2024 Apr 09, 2024

I'm having a problem with auto font, in that it is creating multiple different sizes. I only want to use it when there is two much test to fit in a text box. Not make the text as large as possible.AB.pngexpand image

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 10, 2024 Apr 10, 2024

Use the code provided by Nesa above.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 10, 2024 Apr 10, 2024
quote

I would appreciate it if Adobe could implement an automatic text field font sizing feature with adjustable parameters.


By Sanchyan36402478alqm

 

You can submit a feature request here: https://www.adobe.com/products/wishform.html

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 10, 2024 Apr 10, 2024

TIP: the maximum text size is relative to the height of the field.

😉

 

Capture_2404101651.pngexpand image


Acrobate du PDF, InDesigner et Photoshopographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 10, 2024 Apr 10, 2024

Hi, yes, I'm aware of that. The text field height, for example, is set to 0.92cm. This means the maximum text font size can be 18. However, I want to limit the maximum font size to 9 and the minimum to 3 for that text field.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 15, 2024 Sep 15, 2024

how much for 14 font size ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 16, 2024 Sep 16, 2024
LATEST

Do as I do, create a field with text in size 14, place another field next to it with text in automatic size and adjust its height until it matches the text in size 14.


Acrobate du PDF, InDesigner et Photoshopographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines