n8n node to generate PDFs via Gotenberg - Convert HTML to PDF with ease
npm install n8n-nodes-make-pdfThis 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.
Follow the installation guide in the n8n community nodes documentation.
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
To get started install the package in your n8n root directory:
``bash`
npm install n8n-nodes-make-pdf
For Docker-based deployments add the package to your package.json:
`json`
{
"dependencies": {
"n8n-nodes-make-pdf": "^1.0.1"
}
}
This node requires a running Gotenberg instance. Gotenberg is a Docker-powered stateless API for PDF generation.
`bash`
docker run -d --name gotenberg -p 3000:3000 gotenberg/gotenberg:8
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
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| Input Binary Property | string | Yes | Name of the binary property containing HTML data (default: data) |data`) |
| Output Binary Property | string | Yes | Name of the binary property to store the PDF result (default:
| Gotenberg URL | string | Yes | URL of your Gotenberg instance |
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
Tested with n8n version 1.x
* n8n community nodes documentation
* Gotenberg documentation