Description
n8n-nodes-html-to-pdf-free
This n8n node allows you to convert HTML content into PDF documents without requiring any external paid APIs. It uses Puppeteer with automatic Chromium management for reliable PDF generation.
Installation
Follow the installation guide in the n8n community nodes documentation.
Usage Instructions
1. First Time Setup:
– Add the HTML to PDF node to your workflow
– Select “Check Chrome Status” operation
– Execute the node to verify Chrome installation
– If the status is not_ready, run the “Install Chrome Dependencies” operation to trigger the bundled installer
– Follow the provided instructions if Chrome is still not found afterwards
2. Converting HTML to PDF:
– Select “Convert HTML to PDF” operation
– Configure your HTML source and PDF settings
– Execute the node
Chrome/Chromium Setup
Version 0.5.0: Adds inline “Install Chrome Dependencies” operation with actionable guidance.
Version 0.3.0: Improved Chrome detection and automatic installation.
The node will automatically try to:
1. Use Puppeteer’s bundled Chrome (if available)
2. Find system-installed Chrome/Chromium
3. Guide you through installation if Chrome is not found
#### Quick Chrome Installation
After installing the node, if you encounter Chrome-related errors:
- Run the node with the Install Chrome Dependencies operation (recommended)
Run the included installation script
npm run install-chromeOR manually install Chrome
npx puppeteer browsers install chrome
#### Platform-Specific Installation
Docker/Alpine Linux:
⚠️ For Docker users: See n8n is a fair-code licensed workflow automation platform.
Installation
Operations
Credentials
Compatibility
Usage
Resources
Installation
Follow the installation guide in the n8n community nodes documentation.
Manual installation
To manually install this node:
1. Install the node package in your n8n installation:
npm install n8n-nodes-html-to-pdf
2. Restart n8n
Operations
This node supports the following operations:
Credentials
This node does not require any credentials.
Compatibility
Usage
Basic HTML to PDF conversion
1. Add the HTML to PDF node to your workflow
2. Configure the node:
– HTML Source: Choose between “From Input Field” or “Direct HTML”
– HTML Content: Enter your HTML content or reference a field from previous nodes
– Filename: Set the output PDF filename
– Page Format: Choose from A4, Letter, Legal, etc.
– Orientation: Portrait or Landscape
– Margins: Set page margins in mm
Example workflow
Here’s a simple example that converts HTML to PDF:
1. Start node
2. Set node with HTML content
3. HTML to PDF node to convert the HTML
4. Write Binary File node to save the PDF
The node outputs:
Troubleshooting
Error: “Failed to launch the browser process”
This error occurs when Chromium is not installed on your server. See the Prerequisites section above for installation instructions.
For n8n Cloud users
Unfortunately, this node may not work on n8n Cloud as it requires system-level Chromium installation. Consider using n8n self-hosted with proper Chromium setup.
Docker-specific setup
If you’re using Docker, you might need to add these environment variables:
ENV PUPPETEERSKIPCHROMIUM_DOWNLOAD=true
ENV PUPPETEEREXECUTABLEPATH=/usr/bin/chromium-browser
Resources
Changelog
v0.5.0
v0.4.0
v0.3.0
install-chrome script for easy Chrome installationv0.2.1
v0.2.0
html-pdf-node to puppeteer for better Chromium managementv0.1.0
License
Author
Muhammad Faizan


