Site iconJava PDF Blog

How to convert fillable PDF forms to HTML forms in the Command Line

This guide will demonstrate how you can use the command line on your computer to convert fillable PDF forms to HTML forms. You can follow this step-by-step tutorial which only uses a few lines of code. When you convert your fillable PDF forms to HTML forms you will have more flexibility, to be able to display these forms on the web. This guide uses FormVu to demonstrate that conversion.

Instructions on the command line

You can run FormVu to convert directly from the command line which is useful for running the converter from another language or script.

  1. Download the FormVu trial jar
  2. Set the input directory and output directory
  3. Choose conversion options
  4. Increase the XMX value according to need


You will control settings by passing system properties. You can find these settings and their values in the Javadoc. They key classes are:

You can read our article to understand the PDF format and if you’re looking for meanings of common PDF terms, we recommend you check out our PDF glossary.