Introduction

Html2Pdf is a module based on iText7 core that allows you to transform html and accompanying css into a pdf-document

Html2Pdf aims to support the majority of html tags and css declarations, allowing you to create beautiful pdf documents without having to learn a new skillset.

Default output

Below are some examples of the output of Html2Pdf when no Css is specified

A paragraph containing a span tag, a emphasized tag, a bold tag, a code tag, a cite tag, a s tag, a strong tag and a u tag and a variable with both super and subscript: xij.

A Simple table

Header 0 Header 1
Data Data
Data data

An image

It is what it is

Some lists

  1. item
  2. item
  3. item

Css applied

And some examples using the css found in Blogpost.css

A Simple table

Header 0 Header 1
Data Data
Data data

An image

Some lists

  1. item
  2. item
  3. item