07-31-2003, 05:54 AM | #1 (permalink) |
Muffled
Location: Camazotz
|
I'd like to keep my job
I'll have the best chance of that if I can answer this problem.
I've got a pdf that is used in all 67 PA counties. Rather than have 67 different forms with the address of the county office filled in each one, I need to have one form and have the County field filled when the form opens, either by XML metadata or some other source. Rather than get into further details, I'll stick with that question. Is it possible for a pdf to auto-fill a field on opening?
__________________
it's quiet in here |
07-31-2003, 06:14 AM | #2 (permalink) |
Psycho
|
It looks like it's possible...
I did a search for "dynamic pdf" on google and I found a site: http://www.fastio.com/forms/form1040.html that does it for the 1040 form. That just shows you it can be done. I don't think they tell you how because from what I've skimmed, they want you to buy their product. (That's how I interpreted the last paragraph on the bottom of the page.) From other stuff I skimmed it appears that you can use PHP 4.2 to generate dynamic PDFs also. PHP and dynamic PDF: http://www.devarticles.com/art/1/503/2 Good luck, and hope you can keep your job! |
07-31-2003, 07:04 AM | #3 (permalink) |
Industrialist
Location: Southern California
|
I know someone who can do it. I will send him a PM and tell him to check out this thread.
__________________
All truth passes through three stages: First it is ridiculed Second, it is violently opposed and Third, it is accepted as self-evident. ARTHUR SCHOPENHAUER (1788-1860) |
07-31-2003, 07:12 AM | #4 (permalink) |
"Officer, I was in fear for my life"
Location: Oklahoma City
|
Yes, it can be done. If you have access to the original PDF you can use an Adobe version of Java Script to do all kinds of cool things on the form.
How will you know which address to fill when the form opens? |
07-31-2003, 11:20 AM | #5 (permalink) |
Muffled
Location: Camazotz
|
Well, based on the location within the online collection, it'll get the address. I was thinking of having an XML document in the folder to read the address from. Can you cue the JScript to read from a source document like that?
__________________
it's quiet in here |
07-31-2003, 12:14 PM | #6 (permalink) | |
"Officer, I was in fear for my life"
Location: Oklahoma City
|
Quote:
|
|
07-31-2003, 01:33 PM | #7 (permalink) |
Muffled
Location: Camazotz
|
Hmm. The goal for the client is for the form to auto-populate the address. Keep in mind that we're talking about maybe five thousand forms here, and it would suck to make the changes to each of the 67 copies every time, not to mention type the address in to thirty thousand plus forms. The counties are already numbered and are ordered in folders by that number. Can it cue off the folder using relative linking?
__________________
it's quiet in here |
07-31-2003, 02:12 PM | #8 (permalink) | |
"Officer, I was in fear for my life"
Location: Oklahoma City
|
Quote:
|
|
08-05-2003, 09:42 AM | #9 (permalink) |
Addict
Location: Southern California
|
This can easily be done by taking advantage of the FDF layer of the PDF. You can manipulate the FDF by using JSP or ASP. You can also take advantage of the Java Script within the PDF Document.
The JSP or ASP model can perform lookups to a database or any other file to retrieve the information. I noticed you find out the address from the web-site they call it from. You can then just use an FDF file. Fill out the address in a blank form and select File | Export | Form Data. This will create an FDF. Place this in the directory where the PDF is located and instead of calling the PDF, call the FDF. This will launch the PDF with the proper information. If this isn't an option use the Java Script to create an FDF on the fly and load it into the browser with the correct information. Let me know and I will try to locate a sample for you. |
Tags |
job |
|
|