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

Exporting/Imported Form Fields

JerrySaumier
Registered: Mar 19 2007
Posts: 14

I am using Adobe Acrobat 8 Pro on a Mac.
 
I am creating an electronic catalog with an opening page with links to external PDFs for the various products.
 
I would like to have the customer type in their name, project name and date on the opening page and have the information put onto the externally linked pages when they are opened up.
 
I have looked at the export/import form data, but can't seem to get there.
 
Any help is appreciated.
 
Jerry

My Product Information:
Acrobat Pro 8, Macintosh
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Hmm, this is a tough one.

First, add this line of code, in a document script, to all of the documents:

this.disclosed = true;

Next, Change your links to use a JavaScript Action that opens the document and then copies the values from the main file into the newly opened file. Like this

var oLnkDoc = app.openDoc("nextDoc.pdf");if(oLnkDoc != null){oLnkDoc.getField("Name").value = this.getField("Name").value;}
There are other ways to do this, but this one, while it is a good piece of work, is pretty robust.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

JerrySaumier
Registered: Mar 19 2007
Posts: 14
I got the openDoc to open my file, but the field doesn't populate.

Here is the code:

var oLnkDoc = app.openDoc("/Macintosh HD/Users/geraldsaumier/Desktop/SPP/Panel A Layout.pdf");
if (oLnkDoc != null)
{
oLnkDoc.getField("jobname").value = this.getField("jobname").value;
}

I copied the text field from the main page to the destination page, so they should be named the same.

The current document is titled "The Big Test". The name will change based on what my customer saves the document as. Will this matter?

Thanks again.

Jerry