Blog

Tutorials, guides, and tips on generating PDFs from HTML.

How to convert HTML to a single-page PDF

Measuring the HTML and printing it that tall should give you one page. It doesn't. What I ran into with Puppeteer, the script I ended up with, and the shortcut.

Generate and Send PDF Invoice with n8n

Build an automated n8n invoice workflow that collects customer data, creates an HTML invoice, converts it to PDF with html2pdf.app, and sends it by email.

How to convert a WordPress page to PDF

Add a "Save as PDF" link with the HTML to PDF Converter plugin, then use print CSS so the PDF shows only your content, without the menu, sidebar or footer.