# Generate PDFs from n8n


## What the node does for you

If you use [n8n](https://n8n.io/), your workflows probably already pull data from somewhere: a webhook, a form, a database query, a sheet. When that data needs to become **an actual document**, the PDFMonkey node takes care of the rendering. You can run n8n in their cloud or on your own server, and the node works the same way on both.

Since the node accepts a full JSON payload, nested objects and arrays included, it handles more than one-pagers. Think **invoices with line items**, **reports with tables**, or a **batch of certificates** produced by looping over a list of participants. Contracts and other documents can go straight to Google Drive, Dropbox or S3 in the next node. Switch your template's output type to Image and you get WebP, PNG or JPG files instead.

We wrote the node and we maintain it. n8n has **verified** it, which is why it shows up when you search the nodes panel.

## Getting started

1. Search for **PDFMonkey** in the nodes panel. Since it's a verified community node, an instance owner installs it once and everyone on the instance gets it. The npm package is `n8n-nodes-pdfmonkey` if you need it.
2. Paste your PDFMonkey API key into a credential. Every PDFMonkey node can reuse it.
3. In **Generate Document**, pick your template and send your data, either as simple key-value pairs or as JSON when you have nested objects and arrays.
4. By default the node waits for the document to be ready, up to 5 minutes, and **downloads it as binary data**. The next node can email it, upload it or archive it, and you never touch a URL.

## The trigger

Besides **Generate Document**, you'll find **Get Document**, **Download File** and **Delete Document**. The one we're happiest with is the **PDFMonkey Trigger**, though. It starts a workflow whenever a document finishes generating, across a whole workspace or for the templates you pick.

You don't have to set anything up on our side for it. When you activate the workflow, the trigger **registers its own webhook** with PDFMonkey, and it removes it when you deactivate the workflow. 🙌 One thing to keep in mind: it fires on failed generations too, so check the `status` field before carrying on.

This page describes **version 1.0** of the node. Coming from 0.4.x? Read the [upgrade notes](https://github.com/pdfmonkey/n8n-nodes-pdfmonkey/blob/master/CHANGELOG.md#upgrading-from-04x) before you update, because the trigger setup and the way errors are reported both changed.

The [n8n guide](/docs/integrations/n8n/) has a first workflow, a webhook-to-email example, the trigger in more detail, and the errors people run into most.

[Create a free PDFMonkey account](https://dashboard.pdfmonkey.io/register), add the node to a workflow and see what comes out. We'd love to hear what you build with it.

## FAQ

<div class="not-prose my-8 border-t border-taupe-900/20">
    <details class="group border-b border-taupe-900/20" open>
      <summary class="flex cursor-pointer list-none items-baseline gap-4 py-5 font-display text-xl/tight after:ml-auto after:shrink-0 after:font-mono after:text-2xl after:leading-none after:text-teal-800 after:content-['+'] group-open:after:content-['–'] hover:text-teal-800 [&::-webkit-details-marker]:hidden">
        <i class="shrink-0 font-mono text-xs font-semibold tracking-widest text-taupe-900/75 uppercase not-italic">Q1</i>Is the PDFMonkey node for n8n official?
      </summary>
      <div class="grid gap-3 pb-5.5 text-base/relaxed text-taupe-900/80 sm:pl-11 [&_a]:font-semibold [&_a]:underline [&_a]:decoration-pink-500 [&_a]:decoration-2 [&_a]:underline-offset-4 [&_code]:bg-teal-100 [&_code]:px-1"><p>Yes. We build and maintain it, and n8n has verified it. The npm package is n8n-nodes-pdfmonkey, and this page describes version 1.0.</p>
      </div>
    </details>
    <details class="group border-b border-taupe-900/20" >
      <summary class="flex cursor-pointer list-none items-baseline gap-4 py-5 font-display text-xl/tight after:ml-auto after:shrink-0 after:font-mono after:text-2xl after:leading-none after:text-teal-800 after:content-['+'] group-open:after:content-['–'] hover:text-teal-800 [&::-webkit-details-marker]:hidden">
        <i class="shrink-0 font-mono text-xs font-semibold tracking-widest text-taupe-900/75 uppercase not-italic">Q2</i>Does it work with self-hosted n8n?
      </summary>
      <div class="grid gap-3 pb-5.5 text-base/relaxed text-taupe-900/80 sm:pl-11 [&_a]:font-semibold [&_a]:underline [&_a]:decoration-pink-500 [&_a]:decoration-2 [&_a]:underline-offset-4 [&_code]:bg-teal-100 [&_code]:px-1"><p>Yes, on n8n Cloud and on self-hosted instances alike. Like any verified community node, it gets installed once by an instance owner, and then everyone on the instance can use it.</p>
      </div>
    </details>
    <details class="group border-b border-taupe-900/20" >
      <summary class="flex cursor-pointer list-none items-baseline gap-4 py-5 font-display text-xl/tight after:ml-auto after:shrink-0 after:font-mono after:text-2xl after:leading-none after:text-teal-800 after:content-['+'] group-open:after:content-['–'] hover:text-teal-800 [&::-webkit-details-marker]:hidden">
        <i class="shrink-0 font-mono text-xs font-semibold tracking-widest text-taupe-900/75 uppercase not-italic">Q3</i>Can a workflow start when a document is ready?
      </summary>
      <div class="grid gap-3 pb-5.5 text-base/relaxed text-taupe-900/80 sm:pl-11 [&_a]:font-semibold [&_a]:underline [&_a]:decoration-pink-500 [&_a]:decoration-2 [&_a]:underline-offset-4 [&_code]:bg-teal-100 [&_code]:px-1"><p>Yes. The PDFMonkey Trigger fires when a document finishes generating in the workspace you choose, and you can narrow it down to specific templates. It registers its own webhook with PDFMonkey when you activate the workflow and removes it when you deactivate it, so you don&rsquo;t have to configure anything in the PDFMonkey dashboard. It also fires when a generation fails, so check the status field.</p>
      </div>
    </details>
    <details class="group border-b border-taupe-900/20" >
      <summary class="flex cursor-pointer list-none items-baseline gap-4 py-5 font-display text-xl/tight after:ml-auto after:shrink-0 after:font-mono after:text-2xl after:leading-none after:text-teal-800 after:content-['+'] group-open:after:content-['–'] hover:text-teal-800 [&::-webkit-details-marker]:hidden">
        <i class="shrink-0 font-mono text-xs font-semibold tracking-widest text-taupe-900/75 uppercase not-italic">Q4</i>Is there a free plan?
      </summary>
      <div class="grid gap-3 pb-5.5 text-base/relaxed text-taupe-900/80 sm:pl-11 [&_a]:font-semibold [&_a]:underline [&_a]:decoration-pink-500 [&_a]:decoration-2 [&_a]:underline-offset-4 [&_code]:bg-teal-100 [&_code]:px-1"><p>Yes. The Free plan includes 20 documents per month, forever, with no credit card required. Every new account also starts with a 30-day trial that includes 300 documents. Paid plans start at €5 per month with Starter (300 documents per month).</p>
      </div>
    </details>
    <details class="group border-b border-taupe-900/20" >
      <summary class="flex cursor-pointer list-none items-baseline gap-4 py-5 font-display text-xl/tight after:ml-auto after:shrink-0 after:font-mono after:text-2xl after:leading-none after:text-teal-800 after:content-['+'] group-open:after:content-['–'] hover:text-teal-800 [&::-webkit-details-marker]:hidden">
        <i class="shrink-0 font-mono text-xs font-semibold tracking-widest text-taupe-900/75 uppercase not-italic">Q5</i>Do I need to know HTML to design my template?
      </summary>
      <div class="grid gap-3 pb-5.5 text-base/relaxed text-taupe-900/80 sm:pl-11 [&_a]:font-semibold [&_a]:underline [&_a]:decoration-pink-500 [&_a]:decoration-2 [&_a]:underline-offset-4 [&_code]:bg-teal-100 [&_code]:px-1"><p>No. When you create a template, you pick one of two modes: the visual drag-and-drop Builder, or a Code template written in HTML, CSS and Liquid. A template uses one mode or the other, never both. The n8n node sends the same JSON data in both cases.</p>
      </div>
    </details>
    <details class="group border-b border-taupe-900/20" >
      <summary class="flex cursor-pointer list-none items-baseline gap-4 py-5 font-display text-xl/tight after:ml-auto after:shrink-0 after:font-mono after:text-2xl after:leading-none after:text-teal-800 after:content-['+'] group-open:after:content-['–'] hover:text-teal-800 [&::-webkit-details-marker]:hidden">
        <i class="shrink-0 font-mono text-xs font-semibold tracking-widest text-taupe-900/75 uppercase not-italic">Q6</i>Where is my data hosted?
      </summary>
      <div class="grid gap-3 pb-5.5 text-base/relaxed text-taupe-900/80 sm:pl-11 [&_a]:font-semibold [&_a]:underline [&_a]:decoration-pink-500 [&_a]:decoration-2 [&_a]:underline-offset-4 [&_code]:bg-teal-100 [&_code]:px-1"><p>In the European Union. PDFMonkey&rsquo;s application servers, file storage and rendering engines run in Paris, France, and its database runs in Frankfurt, Germany. A GDPR Data Processing Agreement is available.</p>
      </div>
    </details>
</div>
<script type="application/ld+json">{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","acceptedAnswer":{"@type":"Answer","text":"Yes. We build and maintain it, and n8n has verified it. The npm package is n8n-nodes-pdfmonkey, and this page describes version 1.0."},"name":"Is the PDFMonkey node for n8n official?"},{"@type":"Question","acceptedAnswer":{"@type":"Answer","text":"Yes, on n8n Cloud and on self-hosted instances alike. Like any verified community node, it gets installed once by an instance owner, and then everyone on the instance can use it."},"name":"Does it work with self-hosted n8n?"},{"@type":"Question","acceptedAnswer":{"@type":"Answer","text":"Yes. The PDFMonkey Trigger fires when a document finishes generating in the workspace you choose, and you can narrow it down to specific templates. It registers its own webhook with PDFMonkey when you activate the workflow and removes it when you deactivate it, so you don\u0026rsquo;t have to configure anything in the PDFMonkey dashboard. It also fires when a generation fails, so check the status field."},"name":"Can a workflow start when a document is ready?"},{"@type":"Question","acceptedAnswer":{"@type":"Answer","text":"Yes. The Free plan includes 20 documents per month, forever, with no credit card required. Every new account also starts with a 30-day trial that includes 300 documents. Paid plans start at €5 per month with Starter (300 documents per month)."},"name":"Is there a free plan?"},{"@type":"Question","acceptedAnswer":{"@type":"Answer","text":"No. When you create a template, you pick one of two modes: the visual drag-and-drop Builder, or a Code template written in HTML, CSS and Liquid. A template uses one mode or the other, never both. The n8n node sends the same JSON data in both cases."},"name":"Do I need to know HTML to design my template?"},{"@type":"Question","acceptedAnswer":{"@type":"Answer","text":"In the European Union. PDFMonkey\u0026rsquo;s application servers, file storage and rendering engines run in Paris, France, and its database runs in Frankfurt, Germany. A GDPR Data Processing Agreement is available."},"name":"Where is my data hosted?"}]}</script>


## Other no-code integrations

PDFMonkey also works with [Zapier](/integrations/zapier/), [Make](/integrations/make/), [Bubble](/integrations/bubble/) and [Glide](/integrations/glide/). If your data sits in a database or a spreadsheet, we have pages for [Airtable](/integrations/airtable/) and [Google Sheets](/integrations/google-sheets/) too.
