AutomationFlowsWeb Scraping › Convert HTML to PDF and Return via Webhook Using Customjs API

Convert HTML to PDF and Return via Webhook Using Customjs API

ByCustomJS @customjs on n8n.io

!

Webhook trigger★☆☆☆☆ complexity3 nodes@Custom Js/N8N Nodes Pdf Toolkit
Web Scraping Trigger: Webhook Nodes: 3 Complexity: ★☆☆☆☆ Added:

This workflow corresponds to n8n.io template #3331 — we link there as the canonical source.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "37bd6cc9-3cc4-442e-94c1-42972c0fce0d",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        80,
        0
      ],
      "parameters": {
        "path": "060dbacf-0feb-43d4-b4ac-44011a7dd1a4",
        "options": {},
        "responseMode": "responseNode"
      },
      "typeVersion": 2
    },
    {
      "id": "3c05c0e4-7121-46d0-b35c-fc39cdd35ae7",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        580,
        0
      ],
      "parameters": {
        "options": {},
        "respondWith": "binary"
      },
      "typeVersion": 1.1
    },
    {
      "id": "3f5ba2a7-148d-4921-b2ca-9dee17a2b278",
      "name": "HTML to PDF",
      "type": "@custom-js/n8n-nodes-pdf-toolkit.html2Pdf",
      "position": [
        340,
        0
      ],
      "parameters": {
        "htmlInput": "<h1>Hello CustomJS!</h1>\n<h2>CustomJS provides the missing toolset for your no-code projects</h2>"
      },
      "credentials": {
        "customJsApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "HTML to PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTML to PDF": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

!

Source: https://n8n.io/workflows/3331/ — original creator credit. Request a take-down →

More Web Scraping workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Web Scraping

&gt; ⚠️ Notice: &gt; Community nodes like @custom-js/n8n-nodes-pdf-toolkit-v2 can be installed on both self-hosted and Cloud instances of n8n. Just search for it via CustomJS.

HTTP Request, @Custom Js/N8N Nodes Pdf Toolkit, Email Send
Web Scraping

Blog_Summarizer. Uses httpRequest. Webhook trigger; 7 nodes.

HTTP Request
Web Scraping

User Onboarding Workflow. Uses httpRequest, emailSend. Webhook trigger; 7 nodes.

HTTP Request, Email Send
Web Scraping

Excalibur — Fluxo Completo. Uses httpRequest. Webhook trigger; 7 nodes.

HTTP Request
Web Scraping

WF-05: Trade Alert (Webhook from Strategy Engine). Uses httpRequest. Webhook trigger; 7 nodes.

HTTP Request