n8n-nodes-make-pdf
v1.2.4
Published
n8n node to generate PDFs via Gotenberg - Convert HTML to PDF with ease
Maintainers
Readme
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)
- Go to Settings > Community Nodes
- Select Install
- Enter
n8n-nodes-make-pdfin Enter npm package name - Agree to the risks of using community nodes
- Select Install
Manual Installation
To get started install the package in your n8n root directory:
npm install n8n-nodes-make-pdfFor 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:8Operations
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
- HTTP Request - Fetch HTML content or read from file
- Make PDF - Convert HTML to PDF
- Write Binary File - Save the PDF to disk
Compatibility
Tested with n8n version 1.x
Resources
Version History
1.0.1
- Improved error handling
- Added proper binary data handling
- Better TypeScript support
- Enhanced property descriptions
1.0.0
- Initial release
