Display Documents on mobile, tablet and desktop

The world’s most flexible document viewing solution

Download Trial Request a quote

Integrating PDF to HTML5 in Java

A good way to run JPDF2HTML5 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:

There are two code examples at the top of the Javadoc page for PDFtoHTML5Converter which show how to output the IDRViewer or just the pure page content.

How are the settings controlled?

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

Encrypted Files:

We now have our own functionality to decrypt encrypted pdfs but if you wanted to specify a certain Provider then you can still do so using -Dorg.jpedal.securityprovider. Remember to add the security provider to the classpath if needed e.g.

IDRSolutions Limited 1999-2016