tags:

views:

90

answers:

2

Although it would be nice to not use PDF, we are using a legacy system that only generates PDF forms.

I am working with some PDF forms that embed JavaScript to submit data back to a server. The form works when viewed and filled out in the browser.

Unfortunately, our users like to download the forms to their computer, fill them out completely, and only then get an error from Acrobat Reader that it cannot submit the form unless it is loaded in a browser.

How can I make the JavaScript form submission work outside of the web browser, prevent the users from downloading the form, or have the form warn them it won't work before they fill it out?

A: 

What about not using an online PDF form? Have the user fill out a (non-PDF) form on your site and after they click a button or whatever to save their data, you can save it as a PDF back to your server.

Jay Riggs
+1  A: 

Hi Joe,

My knowledge of PDF is probably at least one version of Acrobat behind the curve, but I think the short answer to your question is "You can't".

From a bigger picture point of view: the use of PDF as a data entry user interface is a path of much pain and suffering.

If your objective is to provide a picture-perfect UI available over the web, look at solutions like Blueprint CSS.

If your objective is to provide a 'rich' user experience, look at JQuery.

If your objective is to save yourself the work of replicating an existing document as a web form, then you have not yet learned how much real work it takes to use PDF as a data-entry mechanism.

David Montgomery
@dirkgently: Nice handle! I'm only extremely familiar with PDF 1.4 and earlier, though it appears the current version is 1.7. Adobe may have added lots of network-aware features to the newer versions of the specification that I'm simply not aware of.
David Montgomery
@dirkgently: and isn't the 1.4 specification for Acrobat 5 and above?
David Montgomery
@David: I made a typo. Yes you are right -- Acrobat 5 supports 1.4 **(and lower)**. I misunderstood that part "behind the curve". What I meant was that the latest Acrobat 1.N supports the standard PDF 1.(N-1). That doesn't mean there is a PDF 1.N available then and Acrobat is not supporting it. It's more of a nomenclature thing. 1.7 was the last standard that Adobe published. PDF is now an ISO standard and soon Acrobat's and PDF's versioning irregularities will fade away -- or so I hope.
dirkgently