Back to Nodes

index.js

Last updated Jan 10, 2026

n8n node to generate PDFs via Gotenberg - Convert HTML to PDF with ease

28 Weekly Downloads
189 Monthly Downloads

Included Nodes

index.js

Description

n8n-nodes-make-pdf

This is an n8n community node that allows you to generate PDF files from HTML using Gotenberg.

n8n is a fair-code licensed workflow automation platform.

Installation

Follow the installation guide in the n8n community nodes documentation.

Community Nodes (Recommended)

1. Go to Settings > Community Nodes
2. Select Install
3. Enter n8n-nodes-make-pdf in Enter npm package name
4. Agree to the risks of using community nodes
5. Select Install

Manual Installation

To get started install the package in your n8n root directory:

npm install n8n-nodes-make-pdf

For Docker-based deployments add the package to your package.json:

{
  "dependencies": {
    "n8n-nodes-make-pdf": "^1.0.1"
  }
}

Prerequisites

This node requires a running Gotenberg instance. Gotenberg is a Docker-powered stateless API for PDF generation.

Quick Start with Docker

docker run -d --name gotenberg -p 3000:3000 gotenberg/gotenberg:8

Operations

Make PDF

Converts HTML content to PDF format.

Input:

  • Binary data containing HTML content
  • Gotenberg server URL (default: http://gotenberg:3000/forms/chromium/convert/html)
  • Output:

  • Binary data containing the generated PDF
  • Configuration

    Node Parameters

    | Parameter | Type | Required | Description |
    |———–|——|———-|————-|
    | Input Binary Property | string | Yes | Name of the binary property containing HTML data (default: data) |
    | Output Binary Property | string | Yes | Name of the binary property to store the PDF result (default: data) |
    | Gotenberg URL | string | Yes | URL of your Gotenberg instance |

    Example Workflow

    1. HTTP Request – Fetch HTML content or read from file
    2. Make PDF – Convert HTML to PDF
    3. Write Binary File – Save the PDF to disk

    Compatibility

    Tested with n8n version 1.x

    Resources

  • n8n community nodes documentation
  • Gotenberg documentation
  • Version History

    1.0.1

  • Improved error handling
  • Added proper binary data handling
  • Better TypeScript support
  • Enhanced property descriptions
  • 1.0.0

  • Initial release

License

MIT