Templates / Generate PDF invoices with CustomJS API

Generate PDF invoices with CustomJS API

Unknown

by CustomJS ✓ · 8,515 views · created 2025-03-26 · Invoice Processing

Unknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What 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.

  1. Set data (Edit Fields (Set)): sets 5 fields: Invoice No, Bill To, From…
  2. Preprocess (Code): runs custom JavaScript code
  3. HTML to PDF (Html2Pdf): uses Html2Pdf
  4. Respond to Webhook: sends the response back to the webhook caller

Services it uses

Pdf Toolkit (community)

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)

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…

Excerpt from CustomJS's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.