Skip to main content
Participant
May 22, 2018
Question

edit text font size for all text boxes?

  • May 22, 2018
  • 1 reply
  • 1629 views

Hi, I'm trying to fill out an autofill form using acrobat 7 professional. The autoform has over 120 text boxes. The auto fill fonts sizes for the text boxes is too large and is cutting off the words. How do I edit the text font size for all text boxes all at once? Thanks!

This topic has been closed for replies.

1 reply

Karl Heinz  Kremer
Community Expert
Community Expert
May 22, 2018

You can use JavaScript to reduce every field's font size by looping over all fields in a document, and then if a field is of type text, you reduce the font size:

for (var i=0; i<this.numFields; i++) {

    var f = this.getField(this.getNthFieldName(i));

    if (f.type == "text") {

        f.textSize = f.textSize - 1;

    }

}

You can of course come up with a more sophisticated algorithm for the new font size (e.g. if it's 12, go to 10, if it's 10, go to 9). You can run this in a Batch Process.

Participant
May 22, 2018

Hi Karl, Thanks, I wish I were tech smart, but I am not. Isn't there a layperson way to change all text boxes to autofit? 

try67
Community Expert
Community Expert
May 22, 2018

You can do it easily without writing any code using this tool I've

developed:

http://try67.blogspot.com/2013/06/acrobat-mass-edit-fields-properties.html