Skip to main content
Participant
Dec 15, 2020 1:54 AM UTC
Answered

Help - Changing Font style in acrobat reader for fillable fields

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 is closed to new replies. Start a new post to keep the conversation going.
JR Boulay
JR BoulayCorrect answer
Community Expert
Dec 15, 2020 1:32 PM UTC

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

3 replies

JR Boulay
Community Expert
JR BoulayCommunity ExpertCorrect answer
Community Expert
Dec 15, 2020 1:32 PM UTC

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

Translate
Acrobate du PDF, InDesigner et Photoshopographe
Legend
Dec 15, 2020 9:53 AM UTC

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

Translate
Bernd Alheit
Community Expert
Community Expert
Dec 15, 2020 8:43 AM UTC

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

Translate