Link
Skip to main content

Running from Java

A good way to run FormVu is directly from Java code, as IDEs will usually list available methods. This guide is aimed at developers with knowledge of Java. If you do not know Java, we recommend using the online converter.

Prerequisites:

Quick Start:

HTMLConversionOptions conversionOptions = new HTMLConversionOptions();
// Set conversion options here e.g. conversionOptions.setImageScale(1.2f);

FormViewerOptions viewerOptions = new FormViewerOptions();
// Set FormViewer options here e.g. viewerOptions.setEnableFDFJavaScript(true);

File input = new File("C:/MyDocument.pdf");
File output = new File("C:/MyOutputDirectory/");

PDFtoHTML5Converter converter = new PDFtoHTML5Converter(input, output, conversionOptions, viewerOptions);

try {
    converter.convert();
} catch (PdfException e) {
    e.printStackTrace();
}

For more information, please see the Javadoc page for PDFtoHTML5Converter.

How are the settings controlled?

Available settings and their values can be found in the Javadoc. The key classes are:


Get started with FormVu in 3 steps

  1. Fill in the form to download the trial jar →
  2. Copy the code snippets as instructed on the next page
  3. Build your solution using our docs

Learn more about FormVu

Start Your Free Trial