Convert HTML to PDF and Return via Webhook using CustomJS API — n8n Workflow

Low complexity🔗 Webhook3 nodes💎 Other👁 2,454 viewsby CustomJS

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

WebhookRespond to WebhookHTML to PDF

Workflow Preview

W
Webhook
R
Respond to Webhook
H
HTML to PDF
3 nodes2 edges

How it Works

  1. 1

    Trigger

    The workflow starts with a webhook trigger.

  2. 2

    Process

    Data flows through 3 nodes, connecting @custom-js/n8n-nodes-pdf-toolkit.html2pdf, respondtowebhook, webhook.

  3. 3

    Output

    The workflow completes its automation and delivers the result to the configured destination.

Node Details (3)

WE

Webhook

webhook

#1
RE

Respond to Webhook

respondToWebhook

#2
HT

HTML to PDF

@custom-js/n8n-nodes-pdf-toolkit.html2Pdf

#3

How to Import This Workflow

  1. 1Click Download JSON button on the right to save the workflow file.
  2. 2Open your n8n instance. Go to Workflows → New → Import from file.
  3. 3Select the downloaded convert-html-to-pdf-and-return-via-webhook-using-customjs-api file and click Import.
  4. 4Set up credentials for each service node (API keys, OAuth, etc.).
  5. 5Click Test Workflow to verify everything works, then activate it.

Or paste directly in n8n → Import from JSON:

{ "name": "Convert HTML to PDF and Return via Webhook using CustomJS API", "nodes": [...], ...}

Integrations

@custom-js/n8n-nodes-pdf-toolkit.html2pdfrespondtowebhookwebhook

Get This Workflow

Download and import in one click

Download JSONView on n8n.io
Nodes3
Complexitylow
Triggerwebhook
Views2,454
CategoryOther

Created by

CustomJS

CustomJS

@customjs

Tags

@custom-js/n8n-nodes-pdf-toolkit.html2pdfrespondtowebhookwebhook

New to n8n?

n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.

Get n8n Free →