Convert HTML to PDF and Return via Webhook using CustomJS API — n8n Workflow
Overview
! 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 PD
Nodes used
Workflow Preview
How it Works
- 1
Trigger
The workflow starts with a webhook trigger.
- 2
Process
Data flows through 3 nodes, connecting @custom-js/n8n-nodes-pdf-toolkit.html2pdf, respondtowebhook, webhook.
- 3
Output
The workflow completes its automation and delivers the result to the configured destination.
Node Details (3)
Webhook
webhook
Respond to Webhook
respondToWebhook
HTML to PDF
@custom-js/n8n-nodes-pdf-toolkit.html2Pdf
How to Import This Workflow
- 1Click Download JSON button on the right to save the workflow file.
- 2Open your n8n instance. Go to Workflows → New → Import from file.
- 3Select the downloaded
convert-html-to-pdf-and-return-via-webhook-using-customjs-apifile and click Import. - 4Set up credentials for each service node (API keys, OAuth, etc.).
- 5Click Test Workflow to verify everything works, then activate it.
Or paste directly in n8n → Import from JSON:
Integrations
Created by
CustomJS
@customjs
Tags
New to n8n?
n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.
Get n8n Free →