Generate PDF invoices with CustomJS API
UnknownWhat this workflow does
This workflow has 5 nodes and runs when an HTTP GET request hits its webhook URL. Along the way it connects Pdf Toolkit (community).
How it runs
Trigger: When an HTTP GET request hits its webhook URL.
- Set data (Edit Fields (Set)): sets 5 fields: Invoice No, Bill To, From…
- Preprocess (Code): runs custom JavaScript code
- HTML to PDF (Html2Pdf): uses Html2Pdf
- Respond to Webhook: sends the response back to the webhook caller
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @custom-js/n8n-nodes-pdf-toolkit is verified or supports 3.0 (used in HTML to PDF).
Nodes used (5)
- Html2Pdf
@custom-js/n8n-nodes-pdf-toolkit.html2Pdf - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - Webhook
n8n-nodes-base.webhook - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
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…