iText 7 pdfHTML

pdfHTML is an iText 7 add-on that allows you to easily convert HTML and CSS into PDF documents.

Features & Benefits

Click the arrow to expand features and benefits.

pdfHTML demo video

Core capabilities

Convert static HTML5 and CSS3 to PDF

The conversion is customizable, dynamic and simple.

Convert snippets or full documents

You can convert a full document to PDF directly. Alternatively, you can convert an HTML snippet to "iText building blocks", e.g. converting an HTML rich text paragraph to an iText Paragraph object.

Create PDF's that are compliant with PDF standards

More specifically PDF/A, and PDF/UA.

Use customizable conversion options

Add dynamic content to your PDF such as barcodes.
Leverage converter properties and custom processing of tags to fine tune your conversion.

pdfHTML

An example of pdfHTML

A basic example will show the use of pdfHTML. For this, we will use the following HTML and CSS.

        <head>
            <style>
                p {
                    color : #084975;
                }
                div{ 
                    color: #F99D25; 
                }
            </style>
        </head>
        <body>
            <p>iText</p>
            <div>Your developer journey with iText begins here</div>
        </body>

The output will be directly written to a PDF file, using the following code:

    public static void main() throws IOException {
 
        // IO
        File htmlSource = new File("input.html");
        File pdfDest = new File("output.pdf");
 
        // pdfHTML specific code
        ConverterProperties converterProperties = new ConverterProperties();
        HtmlConverter.convertToPdf(new FileInputStream(htmlSource), new FileOutputStream(pdfDest), converterProperties);
    }

The resulting PDF will look as follows:


Output result of pdfHTML example

Discover our resources

Webinar

Webinar

 

Blog

Blog

Download free trial

Free trial

Documentation

Other


Our commercial licensing models


Unit-based license
server
Unit-based license
end-user device
Volume-based
license
OEM license
server
OEM license
end-user device
Description

Licensed perpetually.

Installed on your own server, virtual machine or node installation.

Licensed perpetually.

Installed on your own end-user device.

Annual license.

Installed on a hosted server platform.

Licensed perpetually.

Embedded into your server application distributed to your customers.

Installed on a server, virtual machine or node installation.

Licensed perpetually.

Embedded into your end-user application distributed to your customers.

Installed on a end-user device (desktop, laptop, tablet, etc.).

Available for
Java and .NET platform
Conditions

1 per server, virtual machine or node.

Based on number of servers.




Unlimited number of PDFs.

1 per end-user device.


Based on number of end-user devices.




Unlimited number of PDFs.

Per application.


Counted as amount of PDFs produced.




Specified number of PDFs per year.

Always per application.


Based on number of servers deployed, min. volume is 10 servers.



Unlimited number of PDFs, unlimited distribution time.

Always per application.


Based on number of end-user devices deployed, min. volume is 100 end-user devices (desktops).

Unlimited number of PDFs, unlimited distribution time.

Professional support
and maintenance

Annually renewable at 20 % of prevailing list price (mandatory first year).

Annually renewable at 20 % of prevailing list price (mandatory first year).

Included in standard subscription.

Annually renewable at 20 % of prevailing list price (mandatory first year).

Annually renewable at 20 % of prevailing list price (mandatory first year).

Pricing

Perpetual license

Non-Production discounted, mandatory with purchase

Perpetual license

Non-Production discounted, mandatory with purchase

Annual license

Perpetual license

Non-Production discounted, mandatory with purchase

Perpetual license

Non-Production discounted, mandatory with purchase

Read more
Read more
Read more
Read more
Read more

Request your free quote now

Thank you for your interest in our iText Software Products.

Our sales team will contact you within one business day to discuss your project and create your personalized quotation.