Skip to main content
Participating Frequently
June 12, 2024
Answered

Das Format mehrerer Formularfelder gleichzeitig ändern

  • June 12, 2024
  • 2 replies
  • 886 views

Kann man das Format mehrerer Formularfelder gleichzeitig ändern? Sich durch 100 Felder einzeln klicken ist sehr mühselig. Alle Felder markieren -> Rechtsklick -> Eigenschaften funktioniert leider nicht, dort ist der Reiter "Format" nicht aufgeführt.

This topic has been closed for replies.
Correct answer PDF Automation Station

You can only change the format, manually, one field at a time.  However, you can set the format by running the setAction() method in the console.  If your fields have a consistent numbering structure (example:  "Field.1", "Field.2", "Field.3") you can run a loop in the console that changes the format of all the fields in that numbering structure.  If your fields don't have structure you can select all the fields and change the Orientation to something other than zero (assuming all your field orientations are zero, then loop through all the fields in the document and test for the orientation property.  If orientation matches, change the format then set the orientation back to zero.

If your fields are in rows or columns, you can delete them and recreate them with the correct format by creating one, formatting it, then using Right-Click > Create multiple copies.

2 replies

try67
Community Expert
Community Expert
June 12, 2024

Only by using a script, like this (paid-for) tool I've developed that allows you to do just that:

https://www.try67.com/tool/acrobat-apply-format-to-multiple-text-fields

 

PDF Automation Station
Community Expert
Community Expert
June 12, 2024

You can only change the format, manually, one field at a time.  However, you can set the format by running the setAction() method in the console.  If your fields have a consistent numbering structure (example:  "Field.1", "Field.2", "Field.3") you can run a loop in the console that changes the format of all the fields in that numbering structure.  If your fields don't have structure you can select all the fields and change the Orientation to something other than zero (assuming all your field orientations are zero, then loop through all the fields in the document and test for the orientation property.  If orientation matches, change the format then set the orientation back to zero.

If your fields are in rows or columns, you can delete them and recreate them with the correct format by creating one, formatting it, then using Right-Click > Create multiple copies.