AutomationMart
Home/Browse/Generate PDF invoices with CustomJS API
n8n

Generate PDF invoices with CustomJS API

n8nn8n5 modulesv1.0
UNSUPPORTED_SLUG_FORMAT

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 into a

At a glance

Generate PDF invoices with CustomJS API is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects UNSUPPORTED_SLUG_FORMAT. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
UNSUPPORTED_SLUG_FORMAT
Modules
5
Price
Free
Version
v1.0
Generate PDF invoices with CustomJS API workflow diagram

About this workflow

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 into a styled PDF document. - Response: Sends the generated PDF back to the webhook response. Notice Community nodes can only be installed on self-hosted instances of n8n. Requirements - Self-hosted n8n instance - A CustomJS API key for website screenshots. - Invoice data for PDF generation Workflow Steps: 1. Webhook Trigger: - Accepts incoming data (e.g., invoice number, recipient details, itemized list). - This data is passed to the next node for processing. 2. Set Data Node: - Configures initial values for the invoice, including the recipient, sender, invoice number, and the items on the invoice. - The invoice details include information like description, unit price, and quantity. 3. Preprocess Node: - Processes the raw data to format it correctly for HTML. This includes splitting addresses and converting the items into an HTML table format. 4. HTML to PDF Conversion: - Converts the generated HTML into a PDF document. The HTML includes a header, a detailed invoice table, and a footer with contact information. 5. Respond to Webhook: - Returns the generated PDF as a response to the initial webhook request. --- Setup Guide: 1. Configure CustomJS API - Sign up at CustomJS. - Retrieve your API key from the profile page. - Add your API key as n8n credentials. 2. Design Workflow 1. Create a Webhook: - Set up a webhook to trigger the workflow when invoice data is received. 2. Prepare Data: - Ensure the incoming request contains fields like "Invoice No", "Bill To", "From", and "Details" (list of items with price and quantity). 3. Customize the HTML: - The HTML template for the invoice includes custom styling to give the invoice a professional look. 4. Convert to PDF: - The HTML to PDF node is configured with the data generated from the preprocessing step to convert the invoice HTML to a PDF format. --- Example Invoice Data: Result PDF File

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Multi-agent PDF-to-blog content generation

Purpose of workflow: The purpose of this workflow is to automatically transform complex, lengthy PDFs into concise, insightful blog posts. This process aims to make dense information more accessible and understandable to a broader audience. How it works: Multi-agent team: Working together to transform PDF to insightful blog - Content Analyst: Extracts key information and structure from the PDF. - Project Planner: Organizes the workflow and ensures efficient processing. - Writers: Multiple agents

Free

Set Market Segment for Newly Created Reservation Automatically

Automation template to assign segments to newly created reservations in Apaleo.

Free

Hacker news job listing scraper and parser

This automated workflow scrapes and processes the monthly "Who is Hiring" thread from Hacker News, transforming raw job listings into structured data for analysis or integration with other systems. Perfect for job seekers, recruiters, or anyone looking to monitor tech job market trends. How it works Automatically fetches the latest "Who is Hiring" thread from Hacker News Extracts and cleans relevant job posting data using the HN API Splits and processes individual job listings into structured fo

Free

Generate Complete Database Schemas with Claude for SQL Databases

Transform database design from weeks to minutes with this intelligent multi-agent system. Perfect for agencies, consultancies, and SaaS companies offering database architecture as a lead magnet or service. 🤖 4 Specialized AI Agents: - Agent 1 (Architect): Designs complete schema with tables, relationships, indexes - Agent 2 (Reviewer): Validates design for performance, security, scalability - Agent 3 (Optimizer): Adds advanced features and scores the design (0-100) - Agent 4 (

Free

Automate screenshot upload to Postimages.org with Airtop browser automation

Automating File (Image) Upload to Postimages.org Use Case Manually uploading screenshots or other image files to hosting platforms like Postimages.org can be tedious and time-consuming. This automation simplifies the process by automatically uploading an image to Postimages.org and validating the result, which is especially useful for repetitive QA tasks, reporting, or archiving visual web data. What This Automation Does This automation uploads a screenshot to Postimages.org using the following

Free

Let AI agents run your CRM with Copper Tool MCP Server 💪 all 32 operations

Need help? Want access to this workflow + many more paid workflows + live Q&A sessions with a top verified n8n creator? Join the community Complete MCP server exposing all Copper Tool operations to AI agents. Zero configuration needed - all 32 operations pre-built. ⚡ Quick Setup 1. Import this workflow into your n8n instance 2. Activate the workflow to start your MCP server 3. Copy the webhook URL from the MCP trigger node 4. Connect AI agents using the MCP URL 🔧 How it Works • MCP Trigger: Serv

Free

Weekly AI News Digest with Perplexity AI and Gmail Newsletter

Overview This automated workflow delivers a weekly digest of the most important AI news directly to your inbox. Every Monday at 9 AM, it uses Perplexity AI to research the latest developments and organizes them into four key categories: New Technology, Trending Topics, Top Stories, and AI Security. The workflow then formats this information into a beautifully designed HTML email with summaries, significance explanations, and source links. What It Does Automatically searches for the la

Free

Automate call scheduling with Voice AI receptionist using Vapi, Google Calendar & Airtable

Who is this template for? This template is ideal for small businesses, agencies, and solo professionals who want to automate appointment scheduling and caller follow-up through a voice-based AI receptionist. If you’re using tools like Google Calendar, Airtable, and Vapi (Twilio), this setup is for you. What problem does this workflow solve? Manual call handling, appointment booking, and email coordination can be time-consuming and prone to errors. This workflow solves that by automati

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free