Convert HTML to PDF and return via webhook using CustomJS API
n8n Workflow: HTML to PDF Generator This n8n workflow converts HTML content into a styled PDF and returns it as a response via a webhook. The workflow receives HTML input, processes it using CustomJS's PDF toolkit, and sends back the resulting PDF to the original webhook requester. @custom-js/n8n-nodes-pdf-toolkit Features: - Webhook Trigger: Accepts incoming requests with HTML content. - HTML to PDF Conversion: Uses CustomJS to transform HTML into a PDF. - Response: Sends the generated PDF back
At a glance
Convert HTML to PDF and return via webhook using CustomJS API is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects UNSUPPORTED_SLUG_FORMAT. It's free to download. Follow the 5-step import below to go live in minutes.
- Platform
- n8n
- Connects
- UNSUPPORTED_SLUG_FORMAT
- Modules
- 3
- Price
- Free
- Version
- v1.0

About this workflow
n8n Workflow: HTML to PDF Generator This n8n workflow converts HTML content into a styled PDF and returns it as a response via a webhook. The workflow receives HTML input, processes it using CustomJS's PDF toolkit, and sends back the resulting PDF to the original webhook requester. @custom-js/n8n-nodes-pdf-toolkit Features: - Webhook Trigger: Accepts incoming requests with HTML content. - HTML to PDF Conversion: Uses CustomJS to transform HTML into a PDF. - Response: Sends the generated PDF back to the webhook response. Requirements: - Self-hosted n8n instance - A CustomJS API key for HTML to PDF conversion - HTML content to be converted into a PDF Workflow Steps: 1. Webhook Trigger: - Accepts incoming HTTP requests with HTML content. - This data is passed to the next node for processing. 2. HTML to PDF Conversion: - Uses the CustomJS node to convert the incoming HTML into a PDF document. - You can customize the HTML content to match the design requirements. 3. Respond to Webhook: - Sends the generated PDF as a binary response to the original webhook request. --- Setup Guide: 1. Configure CustomJS API - Sign up at CustomJS. - Retrieve your API key from the profile page. - Add your API key as n8n credentials. 2. Design Workflow 1. Create a Webhook: - Set up a webhook to trigger the workflow when HTML content is received. 2. Prepare HTML Content: - The incoming request should include the HTML content you wish to convert into a PDF. 3. Configure HTML to PDF Node: - Use the HTML to PDF node to convert the provided HTML into a PDF. - The node uses the HTML input to generate a PDF using the CustomJS API. 4. Respond with the PDF: - The Respond to Webhook node will send the generated PDF back to the original requester as a binary response. --- Example HTML Input: Result PDF
How to import this n8n workflow
- 1
Download the workflow JSON file after purchase.
- 2
Open n8n → click the menu → Import from File.
- 3
Select the downloaded JSON and import.
- 4
Set up credentials for each node that requires them.
- 5
Click Execute Workflow to test, then activate.
Setup guide
Setup guide included
Purchase to unlock the full step-by-step guide
Related N8n workflows
Evaluation metric example: String similarity
🛠️ SyncroMSP tool MCP server 💪 all 20 operations
Send email if server has upgradable packages
Deploy docker Grafana, API backend for WHMCS/WISECP
🔐🦙🤖 Private & local Ollama self-hosted AI assistant
Learn secure webhook APIs with authentication and Supabase integration
AI auto-save Gmail receipts to Google Sheets + Google Drive
Create OpenAI-compatible API using GitHub models for free AI access
Reviews
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
- JSON blueprint — instant download
- Setup guide PDF included
- 5 downloads · valid 30 days
- Works with n8n
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.
- Configure live on Google Meet / Zoom
- Free follow-up if workflow has defects
- Platform expert assigned to you