Developer & DevOps
Convert HTML content to PDF automatically via webhook
5 nodes
286
148
Webhook
Workflow Description
A workflow that receives requests through a webhook, processes HTML content, converts it to PDF format, and sends the response directly to the client. Ideal for applications requiring automated report or invoice generation without manual intervention.
How it works
- 1.Receive webhook request containing HTML content as JSON payload
- 2.Process and prepare data using a code function for validation
- 3.Convert HTML content to PDF file using the html2Pdf node
- 4.Configure response parameters with the set node to prepare output
- 5.Send generated PDF file as immediate response to the client
Use cases
- Generate invoices and receipts in PDF format from dynamic business data
- Create automated reports and documents in PDF from external requests
- Convert certificates or HTML documents to downloadable PDF files on demand
Requirements
- Set up webhook endpoint to receive POST requests with JSON payload
- Properly formatted HTML content without syntax errors or invalid markup
- Basic understanding of JSON data processing and variable handling
Service Value
Ready-made workflow template for automation delivery and service execution.
Apps Used
HTML
Details
Trigger
Webhook
Nodes
5
Apps
1
Views
286
Downloads
148
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (5)
HTML to PDF
HTML Page
Preprocess
Code
Set data
Set
Webhook
Webhook
Respond to Webhook
Webhook