\n\n\n

How to Automatically Generate PDFs from Forms and Data in n8n

Learn how to set up a fully automated PDF generation workflow in n8n that turns form submissions and spreadsheet data into professional documents — no coding required.

← All Articles
🇬🇧 English

This article contains affiliate links. If you buy through them, we may earn a commission at no extra cost to you.

Stop Creating PDFs Manually — Let n8n Do It For You

Every week, thousands of small business owners spend hours doing something a machine could handle in seconds: generating PDFs. Quotes, invoices, onboarding documents, contracts — the content is often pulled from a form or a spreadsheet, yet someone still has to open a template, paste in the data, export the file, and send it. That's a process begging to be automated.

With n8n, you can build a workflow that takes incoming data — from a web form, a Google Sheet, a CRM, or an API — and instantly produces a professional PDF, ready to email or store. Here's how to do it.

What You'll Need

  • An n8n instance (cloud or self-hosted)
  • A data source: Typeform, Google Forms, Airtable, Google Sheets, or any webhook-compatible tool
  • A PDF generation service: HTML/CSS to PDF via a tool like Gotenberg, PDFMonkey, or Carbone.io
  • An output destination: email (Gmail/SMTP), Google Drive, Dropbox, or a CRM

Step 1: Trigger the Workflow from Your Form or Data Source

Start by connecting your data source. If you're using Typeform, use the Typeform Trigger node. For Google Sheets, use the Google Sheets Trigger set to fire when a new row is added. For custom forms on your website, a Webhook node will capture submissions directly.

Each submission becomes the input data for your PDF — things like customer name, address, order details, or any other fields you've collected.

Step 2: Format and Prepare Your Data

Before generating the PDF, clean and structure your data using the Set node or a Function node. This is where you can:

  • Combine first and last name into a full name
  • Format dates (e.g., turn 2026-04-03 into April 3, 2026)
  • Calculate totals or apply VAT
  • Set fallback values if a field is empty

Taking a few minutes to structure your data properly here will make your PDF template much easier to maintain.

Step 3: Generate the PDF

This is the core of the workflow. You have several solid options depending on your needs:

Option A: PDFMonkey (Easiest for Beginners)

PDFMonkey lets you design a beautiful template using a drag-and-drop editor, then merge your data into it via API. In n8n, use the HTTP Request node to send your formatted data to the PDFMonkey API. The response will include a download URL for the finished PDF.

Option B: Carbone.io (Best for Word/ODT Templates)

If your team already works with Word documents, Carbone.io lets you use a .docx file as a template. You insert placeholder variables like {d.customerName} directly in Word, then send the data via API to render the final PDF. Perfect for businesses that want to manage templates without learning HTML.

Option C: HTML to PDF with Gotenberg (Self-Hosted and Free)

For full control and zero per-document cost, run Gotenberg as a Docker container alongside n8n. Build your PDF template in HTML and CSS, use the HTTP Request node to send it to Gotenberg, and receive a rendered PDF in return. This approach requires a bit more setup but is extremely powerful and private.

Step 4: Deliver the PDF

Once n8n has the PDF file (usually as a binary output or a URL), route it wherever it needs to go:

  • Send via email using Gmail or SMTP nodes — attach the PDF directly to the message
  • Save to Google Drive or Dropbox using the respective nodes
  • Upload to a CRM like HubSpot or Pipedrive via HTTP Request
  • Store in Notion or Airtable as a file attachment linked to the relevant record

A Real-World Example: Automated Quote Generation

Here's a practical scenario: A prospect fills out a pricing request form on your website. n8n captures the submission via Webhook, formats the data, sends it to PDFMonkey to render your branded quote template, and then emails the finished PDF to the prospect — all within 30 seconds of them hitting

airSlate makes it easy to implement these workflows without any coding.

Turbotic makes it easy to implement these workflows without any coding.

🇩🇪 Deutsch

Dieser Artikel enthält Affiliate-Links (Werbung). Kaufst du darüber, erhalten wir ggf. eine Provision – für dich ohne Mehrkosten.

Schluss mit manuellen PDFs – lass n8n die Arbeit erledigen

Jede Woche verbringen tausende Kleinunternehmer Stunden damit, etwas zu tun, das eine Maschine in Sekunden erledigen könnte: PDFs erstellen. Angebote, Rechnungen, Onboarding-Dokumente, Verträge – die Inhalte kommen meist aus einem Formular oder einer Tabelle, trotzdem öffnet jemand manuell eine Vorlage, fügt die Daten ein, exportiert die Datei und verschickt sie. Ein typischer Prozess, der nach Automatisierung schreit.

Mit n8n kannst du einen Workflow aufbauen, der eingehende Daten – aus einem Webformular, Google Sheets, einem CRM oder einer API – sofort in ein professionelles PDF verwandelt, das direkt versendet oder gespeichert werden kann. So geht's.

Was du brauchst

  • Eine n8n-Instanz (Cloud oder selbst gehostet)
  • Eine Datenquelle: Typeform, Google Forms, Airtable, Google Sheets oder ein beliebiges Webhook-fähiges Tool
  • Einen PDF-Generierungsdienst: z. B. Gotenberg, PDFMonkey oder Carbone.io
  • Ein Ausgabeziel: E-Mail (Gmail/SMTP), Google Drive, Dropbox oder ein CRM

Schritt 1: Den Workflow aus deinem Formular oder deiner Datenquelle auslösen

Beginne damit, deine Datenquelle zu verbinden. Bei Typeform nutzt du den Typeform-Trigger-Node. Für Google Sheets verwendest du den Google-Sheets-Trigger, der ausgelöst wird, wenn eine neue Zeile hinzugefügt wird. Bei eigenen Formularen auf deiner Website fängt ein Webhook-Node die Eingaben direkt ab.

Jede Einreichung liefert die Eingabedaten für dein PDF – zum Beispiel Kundenname, Adresse, Bestelldetails oder andere erfasste Felder.

Schritt 2: Daten formatieren und vorbereiten

Bevor du das PDF generierst, bereinige und strukturiere deine Daten mit dem Set-Node oder einem Function-Node. Hier kannst du unter anderem:

  • Vor- und Nachname zu einem vollständigen Namen zusammenführen
  • Datumsformate anpassen (z. B. 2026-04-03 in 3. April 2026 umwandeln)
  • Gesamtbeträge berechnen oder Mehrwertsteuer hinzufügen
  • Standardwerte setzen, wenn ein Feld leer ist

Wer sich hier ein paar Minuten Zeit nimmt, macht die Pflege der PDF-Vorlage später deutlich einfacher.

Schritt 3: Das PDF generieren

Das ist der Kern des Workflows. Je nach Bedarf stehen dir verschiedene solide Optionen zur Verfügung:

Option A: PDFMonkey (am einfachsten für Einsteiger)

PDFMonkey ermöglicht es dir, eine ansprechende Vorlage per Drag-and-Drop zu gestalten und deine Daten dann per API einzufügen. In n8n sendest du die formatierten Daten über den HTTP-Request-Node an die PDFMonkey-API. Die Antwort enthält einen Download-Link zum fertigen PDF.

Option B: Carbone.io (ideal für Word/ODT-Vorlagen)

Wenn dein Team bereits mit Word-Dokumenten arbeitet, kannst du mit Carbone.io eine .docx-Datei als Vorlage nutzen. Du fügst Platzhaltervariablen wie {d.kundenName} direkt in Word ein und sendest die Daten dann per API, um das fertige PDF zu erzeugen. Perfekt für Unternehmen, die ihre Vorlagen ohne HTML-Kenntnisse verwalten möchten.

Option C: HTML zu PDF mit Gotenberg (selbst gehostet und kostenlos)

Wer volle Kontrolle und keine Kosten pro Dokument möchte, betreibt Gotenberg als Docker-Container neben n8n. Die PDF-Vorlage wird in HTML und CSS erstellt, über den HTTP-Request-Node an Gotenberg gesendet und als fertiges PDF zurückgegeben. Etwas mehr Einrichtungsaufwand, aber extrem leistungsfähig und datenschutzfreundlich.

Schritt 4: Das PDF zustellen

Sobald n8n das PDF hat (meist als binäre Ausgabe oder als URL), leite es weiter an den gewünschten Ort:

  • Per E-Mail versenden – über Gmail- oder SMTP-Nodes als Anhang direkt in die Nachricht
  • In Google Drive oder Dropbox speichern – über die jeweiligen Nodes
  • In ein CRM hochladen – z. B. HubSpot oder Pipedrive per HTTP-Request
  • In Notion oder Airtable ablegen – als Dateianhang, verknüpft mit dem jeweiligen Datensatz

Ein Praxisbeispiel: Automatisierte Angebotserstellung

Stell dir folgendes Szenario vor: Ein Interessent füllt auf deiner Website ein Preisanfrage-Formular aus. n8n empfängt die Eingabe per Webhook, bereitet die Daten auf, sendet sie an PDFMonkey, das dein Marken-Angebotstemplate befüllt, und schickt das fertige PDF automatisch an den Interessenten – alles innerhalb von 30 Sekunden nach dem Klick auf „Absenden

Mit airSlate lassen sich solche Workflows schnell und ohne Programmierkenntnisse umsetzen.

Mit Turbotic lassen sich solche Workflows schnell und ohne Programmierkenntnisse umsetzen.

Ready to automate?

Automatisierung ohne Entwickler.

Fertige n8n Workflows für KMU — sofort einsatzbereit.

Zu den Templates →