Generate a PDF from HTML and JSON with Node.js
A complete Node.js example: HTML template, JSON data, authentication, PDF download and error handling with the Templatr API.
Integrate the PDF API with Node.js or Python and control CSS page breaks. Runnable examples, HTML templates and downloadable PDF samples.
A complete Node.js example: HTML template, JSON data, authentication, PDF download and error handling with the Templatr API.
A complete Python example: HTML template, JSON data, authentication, PDF download and error handling with the Templatr API.
Use a 60-row report to test CSS page breaks, repeated table headers and long descriptions in a generated PDF.
Start with your server language, inspect the generated PDF, then test pagination with your data. Every tutorial uses the same endpoints as the API reference.