开发者

Can a downloaded, fillable PDF form submit data to a server via JavaScript?

开发者 https://www.devze.com 2022-12-18 14:21 出处:网络
Although it would be nice to not use PDF, we are using a legacy system that only generates PDF forms.

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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号