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

Populate PDF with data from another PDF Form

mauriciobravo11
Registered: Jul 19 2011
Posts: 2

I am wondering if anyone can help me find resources on this issue.
I would like to be able to transfer information from a master pdf form, which is fillable, into another form by the push of button.Any feedback?

My Product Information:
Acrobat Pro Extended 10.1, Macintosh
try67
Expert
Registered: Oct 30 2008
Posts: 2398
It's possible using a script. Do you mean that the button is a part of the document, though, or a button in Acrobat?
If the former, then the file to which you want to copy the data must be "disclosed", ie it must have an embedded script that sets its disclosed property to true when it loads.

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

mauriciobravo11
Registered: Jul 19 2011
Posts: 2
I meant that the button is part of the master pdf document.
Both documents will have common fields ie Name, ID #, DOB, etc, which i assume should make it a little easier to export into the new created form.
Which steps should I take ? I am a novice user of Acrobat Forms.
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Basically, you should:
- Save the date from the fields to an array, including the fields names.
- Open the other file and save a reference to it (using the openDoc() method).
- If this was successful:
- loop over the array, applying the old values to the new form fields (using getField() and the .value property)

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