DEVELOPER RESOURCE LIBRARY

# HTML-to-PDF engineering guides

Practical notes on generating documents in backend applications, with security, reliability and integration trade-offs made explicit.

### [Invoice preview builder](/tools/invoice-preview/)

LIVE DEMO

Try a local-only document preview →

### [How to render HTML to PDF safely in a SaaS backend](/guides/secure-html-to-pdf.html)

SECURITY

Threat model and controls →

### [HTML to PDF in Node.js with Puppeteer](/guides/nodejs-html-to-pdf.html)

NODE.JS

Implementation walkthrough →

### [HTML invoice starter template](/examples/invoice-template.html)

EXAMPLE

View and print →

### [CSS for invoice PDFs: page size and breaks](/guides/invoice-pdf-css-page-breaks.html)

CSS PRINT

Pagination and Puppeteer options →
