Mark Stephens

Mark Stephens has been working with Java and PDF since 1999 and has diversified into HTML5, SVG and JavaFX.

He also enjoys speaking at conferences and has been a Speaker at user groups, Business of Software, Seybold and JavaOne conferences. He has a very dry sense of humor and an MA in Medieval History for which he has not yet found a practical use.

PDF to HTML5 conversion – Getting form values from HTML5

33 sec read

If you use our PDF2HTML5 convertor to create HTML forms and it will copy across the current values. But what if you want to collect the values from an HTML form?

The simplest solution is to use HTML5 to send the data back to the server. HTML forms allow you to post the data back to a URL. We added a mechanism to set this in your HTML pages in our ExtractPagesAsHTML example (or you can add it yourself).

/**
* you can also customise some HTML tags, for example replacing <form> 
with your own custom code
*///HTMLoutput.setTag(HTMLDisplay.FORM_TAG,"<form tag with your code 
in here>");

This allows you to setup a server process to listen for the results (which is beyond the scope of this article). If this process is in Java, you could then easily add the values back into the original PDF with a tool like IText.

Mark Stephens

Mark Stephens has been working with Java and PDF since 1999 and has diversified into HTML5, SVG and JavaFX.

He also enjoys speaking at conferences and has been a Speaker at user groups, Business of Software, Seybold and JavaOne conferences. He has a very dry sense of humor and an MA in Medieval History for which he has not yet found a practical use.

Converting your PDF files to HTML5 with BuildVuĀ 

Recently we announced our updated product range for 2018 and are rebranding some existing products, like JPDF2HTML5 which has been renamed to BuildVu. It...
Georgia Ingham
3 min read

Leave a Reply

Your email address will not be published. Required fields are marked *