Disclosure: I’m involved in developing UsePDFMaker, the PDF service used in this example.
Hi everyone!
I wanted to share an n8n workflow example for generating PDF invoices from structured data.
The idea is straightforward: instead of manually preparing invoice documents, the workflow takes invoice information, builds an HTML template, and converts it into a PDF.
How the workflow works
-
Manual Trigger – Starts the workflow.
-
Sample Invoice Data – Creates example invoice data, including line items and totals.
-
HTML Template – Uses an n8n Code node to generate an HTML invoice.
-
PDF Generation – Uses the UsePDFMaker community node to convert the HTML into a PDF.
GitHub Repository
The workflow JSON and setup instructions are available here:
The example is open-source under the MIT License.
Testing Status
The workflow has passed local structural checks, but it has not yet been imported and tested end-to-end in n8n.
Feedback Welcome
I’m sharing this as a starting point for anyone building invoice or document-generation automations.
I’d love to hear your thoughts:
-
How are you currently generating PDF invoices in n8n?
-
Would you change anything in this workflow?
-
Are there other PDF automation scenarios you’d find useful?
Thanks for taking a look!