PDF Creator Helper
Using the PDF Creator Helper, you can easily create PDF-documents from HTML and CSS content. Simply include your HTML CSS-code in the input field, including any kind of variables and the helper renders DIN-A4 PDF pages. It allows to create multiple pages easily if the content exceeds a regular DIN-A4 page.
All variables can be used in regular Jinja2 syntax e.g.
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta http-equiv="X-UA-Compatble" content="ie=edge"/>
</head>
<body>
<p>First Name: {{ zendeskContact.first_name }}</p>
</body>
</html>
You need to follow the above template in order to ensure UTF-8 encoding.
For ease of creating HTML-content, here are some sites that may help you generate HTML-letters and other documents with ease.
If you like to change the paper size you can add
<meta name="pdfkit-page-size" content="LETTER"/>
or
<meta name="pdfkit-page-size" content="A4"/>
to your HTML-Header.
If you like to receive a document in landscape orientation you can add
<meta name="pdfkit-orientation" content="Landscape"/>
to your HTML-Header.
Last modified 1yr ago