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

Local PDF - Remote FDF

alexpapa
Registered: Nov 25 2008
Posts: 68

Hi there,

I would like to have an offline PDF that I can distribute to clients that will pull live data on a regular basis from my server (most likely when opening the PDF).

The data is time sensitive, along the lines of stock quotes, forex information etc..

I'm not sure how to "pull" data effectively. I know there is an importAnFDF function, but does this work with a URL?

I would also like to know which type of FDF is pulling data (I will have some kind of identifier in the javascript for type of client, or even per client) to get certain types of data (real-time, delayed, etc..)

any ideas?

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You have to do this with "doc.submitForm()". Submit to the URL and have it return the updated info. If different data needs to be returned based on, say which button the user presses, or some other parameter, then the best strategy is to place a hidden field on the form that's filled out with command data immediatly before the submit. Then parse this data out of the submitted FDF before building the return FDF. There are lots of variations.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window[/b][/url]

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