n8n

n8n PDF Node

The PDF node for n8n

Generate PDFs from your DocuPotion templates inside any n8n workflow. Pass JSON data and get back a PDF binary or hosted URL, ready for the next node.

Oliver Watts
George Collier
Matt Neary
5.0

from user reviews

Start generating PDFs in n8n

What the DocuPotion node does

A single n8n PDF generator node that handles template-driven PDF generation, output flexibility, and any trigger you can wire in.

Template-driven PDFs

Design a reusable template in DocuPotion's AI editor, then pass JSON data through the node to produce a populated PDF. Merge fields like {{customerName}} and {{invoiceTotal}} are filled in on every run.

Binary or hosted URL output

Choose how the node returns your PDF. Binary plugs straight into Gmail attachments, Google Drive uploads, or Slack file shares. Hosted URLs work for any downstream HTTP node.

Triggered from anywhere

Webhook, Schedule, Cron, Google Sheets, Airtable, HubSpot, form submissions. Anything that fires in n8n can fire the DocuPotion PDF generator node.

How to use the n8n PDF node

Three steps to your first generated PDF.

1

Install the DocuPotion community node

DocuPotion is listed on n8n.io as a community node. Install it through the community nodes panel. Works the same on n8n Cloud and self-hosted instances.

2

Add your DocuPotion API key

Generate an API key in the DocuPotion app and paste it into n8n's credentials manager. The same credential works across every workflow in your instance.

3

Choose a template and map your data

Add the template ID for the document you're generating, then map JSON fields from upstream nodes to the template's merge fields. Trigger a workflow run and you have a finished PDF.

DocuPotion AI editor showing a template ready for the n8n node

Common n8n PDF workflows

Examples of how teams use the DocuPotion PDF generation node in production.

Airtable

Airtable

DocuPotion

DocuPotion

Attachment

Auto-generate invoices from Airtable

Mark a record as "Ready to Bill" and the invoice PDF lands as an attachment on the same record. No manual handoff.

Schedule

DocuPotion

DocuPotion

Gmail

Gmail

Monthly billing run

On the 1st of every month, every customer in your CRM gets their invoice rendered and emailed in a single workflow run.

Webhook

DocuPotion

DocuPotion

Gmail

Gmail

Form submission to PDF

A user submits your form, the node renders a confirmation document, and the PDF is in their inbox before they close the tab.

Google Sheets

Google Sheets

DocuPotion

DocuPotion

Google Drive

Google Drive

Bulk reports from a spreadsheet

Pull metrics from Google Sheets, generate one branded PDF report per row, and upload each file to a shared Drive folder.

Loved by teams everywhere

From invoices to contracts, teams rely on DocuPotion to automate their document workflows and scale easily.

"I set up DocuPotion and deployed within 30 minutes. Everything worked seamlessly and the team is always responsive and helpful for support. I'd strongly recommend it to any developer who needs to generate documents at scale in their app."
George Collier

George Collier

Founder, Not Quite Unicorns

n8n PDF Node FAQ

Where do I find the DocuPotion node in n8n?

DocuPotion is a community node, listed on n8n.io. Install it through the community nodes panel in your workflow. The same flow works on both n8n Cloud and self-hosted instances. The quickstart guide has the step-by-step.

Does the node work with self-hosted n8n?

Yes. The DocuPotion node is a community node and community nodes can be installed on both n8n Cloud and self-hosted instances. As long as your self-hosted instance can make outbound HTTPS requests, the node works identically.

Does the node return a binary file or a URL?

Both. Configure the node to return either a binary file (which can be wired straight into Gmail attachment, Google Drive upload, or any binary-aware node) or a hosted URL, which works for any HTTP node or downstream tool that accepts a link.

Can I pass raw HTML to the node?

Not directly. The node operates on DocuPotion templates rather than raw HTML strings. To render HTML, save it as a DocuPotion template once, then pass JSON data through the node to fill it in. The benefit is reusable, version-controlled documents instead of one-off renders.

What can trigger PDF generation in n8n?

Anything upstream in n8n. Webhook, Schedule, Cron, Google Sheets, Airtable, HubSpot, Salesforce, form submissions, database changes, file uploads. If it's a trigger or upstream node in n8n, it can fire the DocuPotion node.

How does error handling work if a generation request fails?

Use n8n's built-in Continue On Fail option on the DocuPotion node. The workflow keeps running and downstream nodes can branch on success/failure using an IF node. The node returns a clear error message you can route into Slack alerts or your monitoring tool.

Is there a free trial?

Yes. Start a free DocuPotion trial without a credit card and use the n8n PDF node from your first workflow.

Ready to add the DocuPotion node to your n8n workflows?

Start a free trial of DocuPotion and generate your first PDF from n8n in minutes. No credit card required.

Start Free Trial