Convert HTML to PDF using Zapier: automate invoices from a Dropbox folder with PDF4me
· 20 min read
Convert HTML to PDF is a PDF4me action for Zapier that turns an HTML file into a print ready PDF. Paired with Generate Document, a five step Zap watches a Dropbox folder, merges order data into an HTML invoice template, converts the result to A4, and saves the finished PDF back to Dropbox.
Most "convert HTML to PDF" results hand you a box to drop a file into. That is fine once. It stops being fine when a new order lands every hour and somebody has to open the converter, upload, download, rename, and file the result. This walkthrough replaces that loop with five Zapier steps that run on their own, with real screenshots from a Zap that ran on 02 November 2026 and the exact field values it used.
The flow at a glance
1. New File in Folder
Dropbox trigger watching /DocGen/Orders for a new order JSON.
2. Find File
Dropbox fetches invoice-template.html from /DocGen/Templates.
3. Generate Document
PDF4me merges the order JSON into the HTML template.
4. Convert HTML to PDF
PDF4me renders the merged HTML as an A4 portrait PDF.
5. Upload File
Dropbox saves the PDF to /DocGen/Output/ with a runtime name.