Solved

Acrobat Forms: Populating fields across documents

Posted on 2004-09-09
5
347 Views
Last Modified: 2008-02-01
Is it possible to fill in a customer's name and address in form fields in one pdf document and then have that information automatically populate name and address fields in 3-4 related pdf documents? All these have separate file names.

Or is it necessary to create a single pdf from these multiple files in order for this to work?

Thank you for your assistance.
0
Comment
Question by:goodmorals
  • 3
  • 2
5 Comments
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 12021971
There are ways you can do this across document boundaries, but it's much easier if you have all the pages in one document. Let's talk about the second - simpler - option first: All form fields that share the same name will automatically inherit the data that you set the field on the first page to. So, let's assume that you have a form field to hold the customer name on the first page (let's call this "customerName"). If you now create form fields with the same name on all pages that also need to show the customer name, the customer name will automatically be propagated to all these fields.

The other option is much more complicated. But, there are again simper and more complicated options. The most straight forward option is to store the information that you want to share across the documents in a global JavaScript variable. Your other documents would then reference this global variable to initialize these fields. The problem with this is that if you fill out the first document twice for two different customers, only the last entered information will be available to the other documents.
The next option is a bit more complicated: You create a web server that stores the data you've entered for the first document. Your documents 2..4 are then opened via the web server, which would send the FDF (forms) data to the client, which in turn would request the specific document to be opened.
And, to make things a bit more complicated and more interesting :-) you can store the data in a ODBC accessible database from the first document, and then use the same database to populate the fields in the following documents.

Depending on how you actually fill out and process the forms, I would merge the individual documents if possible.
0
 

Author Comment

by:goodmorals
ID: 12023063
Am I correct that a person using Adobe Reader will not be able to access a global Javascript variable as opposed to a document-level variable?
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 12023227
You can actually set and retrieve global JavaScript variables with Reader.

One thing you have to keep in mind however (and this also applies to the full version of Acrobat). Adobe limits the amount of data that can be stored as global JavaScript variables to 4KB. This means that if other applications already use up 3.99KB, you will not be able to store your variables.
0
 

Author Comment

by:goodmorals
ID: 12026632
How does one set and retrieve global JavaScript variables with Reader?

Would this be a method of entering name and address info in one form and having it populate to another?

I am leaning to combining all the forms into one file and then using bookmarks off a menu page to  jump to the one needed.

0
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 175 total points
ID: 12030975
You would use something like this:

global.myVariable = 1;
global.setPersistent("myVariable", true)

Then, to use this variable, just use this:

doSomething(global.myVariable);

It's the same for Reader as it is for the full version of Acrobat.

Yes, this would be a method to bring information from one document into your other documents (with the limitation that I listed above).

I would probably combine the three documents into one. It's much easier to use, and less error prone.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever come up with a need of emailing only few pages of PDF file to one of yourfriend or colleague, instead of whole Adobe file? If yes, then surely you have face problems in doing that! Read this section as I have suggested multiple solutio…
*Adobe Acrobat 9 was used for this article. Particular steps may vary depending on software versions. 1. Create a framework of your form in Word, leaving space where you’d ultimately like the Adobe fields to appear.  (Note: I use the blank lines …
In this third video of the Xpdf series, we discuss and demonstrate the PDFtoText utility, which converts PDF files into plain text files. Download and install the software.: You may have already downloaded and installed the Xpdf tools while watching…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question