Skip to main content
Participant
December 15, 2020
Answered

Help - Changing Font style in acrobat reader for fillable fields

  • December 15, 2020
  • 3 replies
  • 833 views

Hello,

 

I new to acrobat reader. I started creating forms with fillable fields. The only issue I have now is that I don't like the font style of the fillable fields. I know that I can go to each field and go to the properties and change the font style and size. But the forms has over 600 fillable fields. Is there a way I can do it for all at once ? Thanks

This topic has been closed for replies.
Correct answer JR Boulay

Yes you can, but not via the Acrobat Reader interface, you must use Javascript  :

 

1. Download and install the "JS Console" tool which is part of the free abracadabraTools for Reader:

https://www.abracadabrapdf.net/utilitaires/utilities-in-english/abracadabratools_en/

 

2. Display the Console, copy-paste this script, select all lines, then hit the Enter key (not Return).

 

for (var i = 0; i < this.numFields; i++) {
var oFld = this.getField(this.getNthFieldName(i));
if (oFld.type == "text"){
oFld.textFont = font.Helv;
}
}

 

See available fonts here:

https://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/Acro12_MasterBook/JS_API_AcroJS/Field_properties.htm?rhhlterm=textfont&rhsyns=%20#XREF_11104_textFont

3 replies

JR Boulay
Community Expert
JR BoulayCommunity ExpertCorrect answer
Community Expert
December 15, 2020

Yes you can, but not via the Acrobat Reader interface, you must use Javascript  :

 

1. Download and install the "JS Console" tool which is part of the free abracadabraTools for Reader:

https://www.abracadabrapdf.net/utilitaires/utilities-in-english/abracadabratools_en/

 

2. Display the Console, copy-paste this script, select all lines, then hit the Enter key (not Return).

 

for (var i = 0; i < this.numFields; i++) {
var oFld = this.getField(this.getNthFieldName(i));
if (oFld.type == "text"){
oFld.textFont = font.Helv;
}
}

 

See available fonts here:

https://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/Acro12_MasterBook/JS_API_AcroJS/Field_properties.htm?rhhlterm=textfont&rhsyns=%20#XREF_11104_textFont

Acrobate du PDF, InDesigner et Photoshopographe
Legend
December 15, 2020

Hmm, you can't create forms in Acrobat Reader at all...

Bernd Alheit
Community Expert
Community Expert
December 15, 2020

Not possible with Acrobat Reader. You need Adobe Acrobat for this.