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

Import FDF data using an URL

srprice
Registered: Sep 19 2007
Posts: 138
Answered

Is it possible to use the import FDF data using a URL?

When I use the Import Data option on a Page Open action I get an error that says "File does not begin with '%FDF-' ". When I creat a Javascript on a Page Open action it still prompts me to browse for the .fdf file.

this.importAnFDF ("http:\\mysite.mil\data\DRAW\List_data.fdf");

Can someone point me in the right direction on this?

Thanks in advance for your help.

Sarah

My Product Information:
Acrobat Pro 8.1.1, Windows
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
You can't use importAnFDF to load an FDF from a web server, but you can submit a request to a web server which can return an FDF, but this involves programming the server to respond correctly.

George
srprice
Registered: Sep 19 2007
Posts: 138
Can you give me a few more details on what I would need to do to set up the code to request to a web server to return the FDF file?? And also what would be involved in updating the server to respond correctly.

Thanks for your help.

sarah
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
To submit to a web server, you can set up a button that has a "Submit Form" action, or a JavaScript action that uses the doc.submitForm method. To indicate to Acrobat the it should expect an FDF response from the server, append "#FDF" to the URL that the form is submitting to.

On the server side, it would have to be programmed to accept and respond to the form submission, perhaps with the help of the FDF Toolkit: http://www.adobe.com/devnet/acrobat/fdftoolkit.php

Its documentation has some examples.

George