Generate PDF Invoices with CustomJS API — n8n Workflow
Overview
n8n Workflow: Invoice PDF Generator
This n8n workflow captures invoice data and generates a PDF invoice, ready to be sent or saved. It uses a webhook to trigger the process, preprocesses the invoice data, and converts it to a PDF using HTML and custom styling.
@custom-js/n8n-nodes-pdf-toolkit
Features:
Webhook Trigger**: Receives incoming data, including invoice details. Preprocessing**: Transforms the invoice data into HTML format. HTML to PDF Conversion**: Converts the preprocessed HTML in
Nodes used
Workflow Preview
How it Works
- 1
Trigger
The workflow starts with a webhook trigger.
- 2
Process
Data flows through 5 nodes, connecting @custom-js/n8n-nodes-pdf-toolkit.html2pdf, code, respondtowebhook.
- 3
Output
The workflow completes its automation and delivers the result to the configured destination.
Node Details (5)
Code
code
How to Import This Workflow
- 1Click Download JSON button on the right to save the workflow file.
- 2Open your n8n instance. Go to Workflows → New → Import from file.
- 3Select the downloaded
generate-pdf-invoices-with-customjs-apifile and click Import. - 4Set up credentials for each service node (API keys, OAuth, etc.).
- 5Click Test Workflow to verify everything works, then activate it.
Or paste directly in n8n → Import from JSON:
Integrations
Created by
CustomJS
@customjs
Tags
New to n8n?
n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.
Get n8n Free →