PDF Helper
Create PDFs from HTML with CSS
Last updated
Create PDFs from HTML with CSS
Last updated
Using the PDF Helper, you can easily create PDF documents from HTML and CSS content.
The PDF Helper has only one default action - Convert HTML To PDF.
Simply include your HTML CSS code in the input field, including any kind of variables and the helper renders DIN-A4 PDF pages. If the content exceeds a regular DIN-A4 page, it is easy to create multiple pages.
All variables can be used in regular Jinja2 syntax e.g.
You need to follow the above template in order to ensure UTF-8 encoding.
If you like to change the paper size you can add
or
to your HTML header.
A list of paper sizes can be found here.
If you like to receive a document in landscape orientation, you can add the following to your HTML header: