workflows.fit
Back to n8n workflows
n8n templateFreeBy CustomJS

Convert HTML to PDF and return via webhook using CustomJS API

![workflow.png](fileId:1048)! 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 us...

DevelopmentCore NodesUtilityWebhookRespond To Webhook@custom-js/n8n-nodes-pdf-toolkit.html2Pdf
Loading interactive preview...

Template notes

![workflow.png](fileId:1048)! 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](@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: