These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Batch process form field?

Kimbly
Registered: Apr 16 2008
Posts: 79

Hello,
 
I have 30 pdf documents that all need a large form field at the bottom of them in the exact same place. Is there a way to make the form field on one of the documents then batch process the form field to all 29 remaining documents? Instead of having to draw the same form field 30 times. This is a job I will be done many times and looking for a time saving method.
 
Any help is much appreciated
Kimberly

My Product Information:
Acrobat Pro 8.1.5, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
This can be done with a script, using the addField method.
The information you need is the field's name, type, page number and coordinates.
The most tricky one is the coordinates. I prefer to do the following:
- Draw the field you want by hand. Let's say it's called Text1.
- Then you open the JavaScript console (Ctrl+J) and execute this code:

this.getField("Text1").rect

- This will produce a list of 4 numbers. Copy them and then use them to create your batch script, which should look something like this:

this.addField("MyField", "text", 0, [1,2,3,4]);

([1,2,3,4] being the numbers you got from the earlier steps)

For more information about the addField method and its parameters check out the Acroabt JavaScript Reference, under the Document Methods section.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

Kimbly
Registered: Apr 16 2008
Posts: 79
I have printed out your answer and am going to get out my acrobat books to see if I can figure it out. I really have no clue how to do javascript in acrobat and need to read up on the basics first. I thank you for your help.

I did figure out if I combine all the pdf docs in to one file. The draw one box, I can duplicate it through out the whole 30 pages. Then extract them all to separate pages. I am still working out how to bulk rename all the files so they are not called binder but I think I can change that if the bulk processing security I add.

Kimberly


try67
Expert
Registered: Oct 30 2008
Posts: 2398
Good luck!
And you can contact me personally if you wish me to develop this script for you.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com