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

Referencing text fields in another pdf

boykula
Registered: Apr 3 2008
Posts: 9
Answered

I see from looking around on these forums that there's a way to use an automation script to "link" excel cells to text fields in a pdf. Is there a way to do this from text field to text field between two pdfs?

Also, what would the script look like? I'm familiar with the basics of programming, but I have no idea where to start. I know I'll probably need to use a folder level script, but is there a way I can set a global variable of some sort that will link these two different text fields?

My Product Information:
Acrobat Pro 8.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Answer posted here:
http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=13576

for a solution with a document scripts.

But you could link fieds with a folder level script. So is was a single button click to get forms to sync up.

You simply open both documents, from a "trustedFunction", and copy data from one to another.

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

boykula
Registered: Apr 3 2008
Posts: 9
Can you please explain what a "TrustedFunction" and what a "disclosed" document are? Is there some sort of example I can see? I'm new to Acrobat and only know the very basics of javascript. Would this be any easier to do with Livecyle?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The first place to look when you need info on Acrobat JavaScript is the "Acrobat JavaScript Reference". Both "disclosed" and "trustedFunctions" are explained there.

You can download this document from here:
http://www.adobe.com/devnet/acrobat/javascript.php

Since you are new to Acrobat JavaScript, you can find out lots of good introductory info in the Articles at JavaScript Corner on this site, including some examples of using the "trustedFunction()" and creating toolbar buttons. In fact, I believe that I put a link to such an article in my other post to your question.

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