admin管理员组

文章数量:1291128

This is what I have:

  • User fills very long html form
  • User gets link to download different pdfs (this are fillable forms), links are generated using javascript
  • User clicks link, url is generated (with the data the user submitted before), data is processed in the form and fields are pleted *this is done using javascript inside the form).
  • User get pdf back with fields pleted.

The problem I'm running is that in some cases the data needed to send to the form is around 8000 characters, when IE only allows 2083 character in the url.

As requested by client, we need to do everything client side, that means no access to php, c#, java. Also I'm using Acrobat Pro X, to work with the pdfs.

Is there a way to submit a post request, process that request in the pdf, fill the form and return the filled form to the user? Is there another way to go around the 2083 character limit of IE?

This is what I have:

  • User fills very long html form
  • User gets link to download different pdfs (this are fillable forms), links are generated using javascript
  • User clicks link, url is generated (with the data the user submitted before), data is processed in the form and fields are pleted *this is done using javascript inside the form).
  • User get pdf back with fields pleted.

The problem I'm running is that in some cases the data needed to send to the form is around 8000 characters, when IE only allows 2083 character in the url.

As requested by client, we need to do everything client side, that means no access to php, c#, java. Also I'm using Acrobat Pro X, to work with the pdfs.

Is there a way to submit a post request, process that request in the pdf, fill the form and return the filled form to the user? Is there another way to go around the 2083 character limit of IE?

Share Improve this question edited Mar 5, 2013 at 9:33 Bruno Lowagie 77.6k9 gold badges118 silver badges178 bronze badges asked Mar 5, 2013 at 8:05 andrantisandrantis 701 gold badge1 silver badge4 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7

Why do you need to send 8000 characters of data to the server if you want to fill out the form on the client side? Seems like all you need to do is to establish munication between the JavaScript in the HTML page and the JavaScript in the PDF. This is explained here: PDF hostContainer callback

PS: I'm the author of the book from which this excerpt was taken: http://www.javabeat/2011/04/javascript-munication-between-html-and-pdf-in-itext/

本文标签: jqueryFill PDF form with javascriptStack Overflow