EvoPdf Classic · Java client

Convert HTML to PDF in your Java Applications

Convert HTML to PDF from Java with the EVO PDF Java client and the EVO PDF Server: the same rendering engine and options as the .NET library, from any JRE 1.6 or later, on Windows, Linux and macOS.

Classic v14.0: Java client for JRE 1.6+, EVO PDF Server on Windows. The archive has the assemblies for each supported .NET version and a demo application with full C# source. Evaluate without registration; the demo output is watermarked until you set a license key. Licensed with the HTML to PDF Converter license or the EVO PDF Toolkit.

ConsoleCLI
evopdf-html-to-pdf-java-client.jar

Add the JAR from the download package to your classpath (any JRE 1.6 or later, on Windows, Linux or macOS); the conversions run on an EVO PDF Server, on Windows

HtmlToPdf.javaJava
import com.evopdf.HtmlToPdfConverter;

// conversions run on the EVO PDF Server
HtmlToPdfConverter converter = new HtmlToPdfConverter(
    "server.mycompany.com", 40000);
byte[] pdf = converter.convertUrl(
    "https://www.evopdf.com");
Same API as the .NET client: com.evopdf package, one converter class, convertUrl / convertHtml(html, baseUrl). API reference →
  • Java client, JRE 1.6 or later
  • Client applications on Windows, Linux and macOS
  • EVO PDF Server on Windows 10 / 11 / Server 2016–2025
  • Azure Cloud Services & Virtual Machines
  • Web, console and desktop applications
In detail

How Convert HTML to PDF in your Java Applications works

EVO HTML to PDF Converter for Javaoffers full support for HTML tags, CSS styles, SVG vector graphics, Canvas, Web Fonts, JavaScript, page breaks control with CSS styles, repeating HTML table header and footer in PDF pages, live URLs and internal links in PDF, automatically generated hierarchical bookmarks and table of contents, HTML in the headers and footers.

The library is much more than a HTML to PDF converter. You can also use it to easily merge, edit and fill existing PDF documents.

EVO HTML to PDF Converter

EVO HTML to PDF Converter client library for Java can be easily integrated in your Java applications to convert HTML documents to PDF, raster images or SVG vector images. The library is a powerful tool helping you to instantly create nicely formatted and easily maintainable PDF reports directly from existing HTML reports.

The converter offers full support for HTML5, CSS3, JavaScript, SVG, web fonts, page breaks control with CSS and from API, automatically repeated HTML table header and footer, live URLs and internal links, automatically generated hierarchical bookmarks and table of contents, automatically generated fillable PDF forms and allows you to digitally sign and password protect the generated PDF documents.

The library was designed and tested to work reliably in multithreaded environments which makes it ideal for usage in high traffic websites and services. Before starting to use the client library for Java in your applications you first have to install the EVO PDF Server as described in the sections below.

EVO HTML to PDF Converter for Java is distributed as a Zip archive that contains the client library for Java as a JAR file for JRE 1.6 or newer, the API documentation in HTML format and the demo applications for Java.

The EVO PDF Server is a separate download.

In order to use the EVO HTML to PDF Converter for Java you first have to install the EVO HTML to PDF Server. The server was built on .NET library to extend its capabilities to other platforms and languages. The JAR library that you link in your Java application will connect to the server to convert HTML to PDF, to Image or to SVG.

EVO HTML to PDF Converter Server can run either in a Windows Service on a Windows machine or in an Azure Cloud. You can find detailed installation and uninstallation instructions in the Readme.txt file from the root of the downloaded package.

The EVO HTML to PDF Converter for Java API allows you to convert a HTML document to PDF in just a few lines a code. The programming interface is also very rich and allows you customize the generated PDF document in various ways. The code below is copied from the Getting Started demo for HTML to PDF Converter that you can find the in the samples folder of the software Zip package.

At a glance

Component
EvoPdf Classic · Java client
Runs on
Any platform with JRE 1.6 or later, Windows, Linux, macOS; the EVO PDF Server runs on Windows, locally or on a remote machine with remote access enabled
Version
Classic v14.0
License
HTML to PDF Converter license or EVO PDF Toolkit; evaluation without registration
Documentation →
HtmlToPdfSample.javaJava
import com.evopdf.HtmlToPdfConverter;
import java.nio.file.Files;
import java.nio.file.Paths;

public class HtmlToPdfSample {
    public static void main(String[] args) throws Exception {
        // the EVO PDF Server: address and port; 127.0.0.1 when installed locally
        HtmlToPdfConverter converter =
            new HtmlToPdfConverter("server.mycompany.com", 40000);
        converter.setLicenseKey("YOUR-LICENSE-KEY");    // omit while evaluating

        // the same options as the .NET library
        converter.setHtmlViewerWidth(1024);
        converter.setNavigationTimeout(120);
        converter.setConversionDelay(2);

        byte[] pdf = converter.convertUrl("https://www.evopdf.com");
        Files.write(Paths.get("page.pdf"), pdf);

        // or from an HTML string, with a base URL for relative resources
        converter = new HtmlToPdfConverter("server.mycompany.com", 40000);
        pdf = converter.convertHtml("<b>Hello World</b>",
                                    "https://www.evopdf.com");
    }
}
Licensing

Perpetual licenses, with a year of updates and support

The HTML to PDF Converter license (450 USD Deployment / 1200 USD Company) covers the Classic and the Next converter; the EVO PDF Toolkit (650 / 1400 USD) covers every component on this site, Classic tools included. The Company License includes redistribution.