Package Information
Documentation
n8n-nodes-gotenberg-pdf
An n8n community node package for Gotenberg β a Docker-based stateless API for PDF file management.
Please star the repo if you use my nodes - I will know that it is needed to someone except me.
Features
Regular Node (Gotenberg)
Convert and manipulate PDFs from n8n workflows:
Chromium Engine
- π URL to PDF β Render any public URL as a PDF using headless Chromium
- π HTML to PDF β Convert binary HTML documents to PDF
- πΈ URL to Screenshot β Take PNG/JPEG/WebP screenshots of any URL
- πΌ HTML to Screenshot β Take screenshots of HTML binary files
LibreOffice Engine
- π Convert to PDF β Convert Word, Excel, PowerPoint, ODT, ODS, ODP, CSV and more to PDF
PDF Engines
- π Merge PDFs β Combine multiple PDFs into a single file (ordered by filename)
- βοΈ Split PDF β Split a PDF by equal intervals or custom page ranges
- π Convert PDF β Convert to PDF/A formats (PDF/A-1a, PDF/A-2b, PDF/A-3b)
- π Flatten PDF β Flatten annotations and interactive form fields
- π Read Metadata β Read PDF metadata properties (Author, Title, etc.) as JSON
- βοΈ Write Metadata β Write custom metadata properties into a PDF
AI Tools Node (Gotenberg AI Tools)
Connect to an n8n AI Agent node to give it PDF capabilities:
| Tool | Description |
|---|---|
gotenberg_url_to_pdf |
Convert a public URL to a PDF (stores in binary property) |
gotenberg_html_to_pdf |
Convert an HTML string to PDF (stores in binary property) |
gotenberg_url_screenshot |
Take a screenshot of a URL (stores in binary property) |
gotenberg_libreoffice_convert |
Convert an office document to PDF (accepts binary property reference) |
gotenberg_merge_pdfs |
Merge multiple PDFs into one (accepts binary property references) |
gotenberg_split_pdf |
Split a PDF into parts (accepts binary property reference) |
gotenberg_flatten_pdf |
Flatten a PDF (accepts binary property reference) |
gotenberg_read_pdf_metadata |
Read metadata from a PDF (accepts binary property reference) |
All tools use n8n native binary references instead of base64. Tools that produce files store them
in n8n's binary data system and return a binaryPropertyName. Tools that consume files accept
a binary_property_name parameter. Compatible with N8N_DEFAULT_BINARY_DATA_MODE=filesystem and database.
Prerequisites
A running Gotenberg instance:
docker run --rm -p 3000:3000 gotenberg/gotenberg:8n8n version β₯ 1.0.0
Installation
npm install n8n-nodes-gotenberg-pdf
Or install via the n8n UI: Settings β Community Nodes β Install β enter n8n-nodes-gotenberg-pdf.
Configuration
Create a Gotenberg API credential with:
- Base URL: URL of your Gotenberg instance (default:
http://localhost:3000) - Username / Password: Optional HTTP Basic Auth credentials (if Gotenberg is configured with
--api-basic-auth-username/--api-basic-auth-password)
Usage Examples
Convert a URL to PDF
- Add a Gotenberg node
- Set Resource: Chromium, Operation: URL to PDF
- Enter the URL
- Optionally configure paper size, margins, landscape, etc.
- The output binary property (
data) will contain the PDF
Convert a Word document to PDF
- Read the .docx file (e.g., using a Read Binary File node)
- Add a Gotenberg node
- Set Resource: LibreOffice, Operation: Convert to PDF
- Set Binary Property to match the property name from the previous node
- The output will be the converted PDF
Use with AI Agent
- Add a Gotenberg AI Tools node
- Select which tools to enable
- Connect the Tool output to an AI Agent node's Tools input
- The AI can now generate PDFs, take screenshots, and process documents
Part of the Assistant Set
This package is also included in the full @unwarkz/n8n-nodes-assistant-set package
License
MIT Β© unwarkz