npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-convert-html-to-pdf

v1.0.2

Published

Convert HTML content or any website URL to a polished PDF document using PDF API Hub

Downloads

243

Readme

n8n-nodes-convert-html-to-pdf

NPM Version License

Convert HTML content or any website URL to a pixel-perfect PDF — with full control over paper size, margins, fonts, and dynamic data.

This is an n8n community node powered by PDF API Hub.


🚀 Install

  1. Go to Settings → Community Nodes in n8n
  2. Enter n8n-nodes-convert-html-to-pdf
  3. Click Install

🔑 Setup

  1. Sign up at pdfapihub.com (free tier available)
  2. Copy your API key
  3. In n8n → Credentials → New → PDF API Hub API → paste your key

✨ Operations

HTML to PDF

Render your own HTML/CSS template as a polished PDF document.

| Parameter | Description | |-----------|-------------| | HTML Content | Your HTML template — supports {{placeholder}} syntax | | CSS Content | Optional CSS injected before rendering | | Load Google Fonts | Pipe-separated font names (e.g. Roboto|Inter) | | Dynamic Params | Key/value pairs that replace {{placeholders}} in your HTML | | Starter Templates | Pick from ready-made samples to pre-fill HTML, CSS, and params |

URL to PDF

Capture any webpage as a PDF — great for reports, receipts, and archiving.

| Parameter | Description | |-----------|-------------| | URL | Any public webpage (https:// added automatically) | | Full Page | Capture the full scrollable page or just the viewport | | Cookie Accept Text | Auto-click cookie consent buttons before capture | | Wait Until | Fully Loaded, DOM Ready, Network Quiet, or First Response |

Common Options (both operations)

| Parameter | Description | |-----------|-------------| | Paper Size | A0–A6, Letter, Legal, Tabloid, Ledger | | Orientation | Portrait or Landscape | | Margins | None, Small, Medium, Large, or Custom (px/mm/cm/in) | | Viewport | Standard, Laptop, Desktop, Mobile, Tablet, or Custom dimensions | | Output Format | URL (hosted 30 days), Base64, or Binary File | | Output Filename | Custom filename for the generated PDF |

Advanced Options

| Option | Description | |--------|-------------| | Print Background | Render CSS background colors and images | | Header & Footer | Show default browser header/footer | | Max Pages | Limit the number of pages returned | | CSS Page Size | Honor @page size declarations | | Navigation Timeout | Max seconds to wait for page load |


💡 Use Cases

  • Invoice generation — merge customer data into an HTML template
  • Report automation — capture dashboards as PDF snapshots
  • Contract creation — fill placeholders with CRM data
  • Website archiving — save webpages for compliance records

📚 Resources

License

MIT