1 Reply Latest reply on Nov 29, 2010 10:12 AM by Ardid2

    Script for automatic text resizing to fit in text field?

    Ardid2

      Help, please!

      I want to make a multiline text field with a pre-fixed font size (8 pt), but I want it to reduce automatically if needed to fit the text box, as if it was set in automatic font size. Is it possible? Is there any script to make this? The estimated length of the text in 8 pt should be 50 characters.

      Thank you in advance,

      Ardid

       

      P.S. I am using Acrobat 9 Pro Mac

        • 1. Re: Script for automatic text resizing to fit in text field?
          Ardid2 Level 1

          Well, I have received just one solution to my request in Acrobat Users Forum. Affortunately, it works! The bad news are that you have to get out of the field to see the font size performance, but it is a minor problem.

           

          For everybody interested, the script validation for this text field should be:

           

          if (event.value.length>50) event.target.textSize = 0;
          else if (event.value.length<50) event.target.textSize = 8;

           

          (Thanks to Try67)