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-to-pdf

v0.1.1

Published

n8n community node to convert HTML and CSV to PDF

Readme

n8n-nodes-convert-to-pdf

An n8n community node that converts HTML and CSV content to PDF files. Works in any Node.js environment — no Chrome or browser dependencies required.

Installation

Community Edition

  1. Go to Settings > Community Nodes
  2. Click Install a community node
  3. Enter n8n-nodes-convert-to-pdf
  4. Click Install

Self-hosted / Kubernetes

If you are running n8n on Kubernetes (e.g. EKS), the community node must be available on all pods (main, workers, webhooks). The recommended approach is to bake it into a custom Docker image:

FROM n8nio/n8n:latest
USER root
RUN cd /usr/local/lib/node_modules/n8n && npm install n8n-nodes-convert-to-pdf
USER node

Operations

HTML to PDF

Converts HTML content to a PDF document. Supports headings, paragraphs, bold, italic, lists, tables, and horizontal rules.

| Field | Description | |-------|-------------| | HTML Source | Choose between Text Input (paste HTML directly) or Binary Input (read from an incoming file) | | HTML Content | The HTML string to convert (when using Text Input) | | Input Binary Field | The binary field name containing the HTML file (when using Binary Input) |

CSV to PDF

Converts CSV content to a styled PDF table with headers, alternating row colors, and borders.

| Field | Description | |-------|-------------| | CSV Source | Choose between Text Input (paste CSV directly) or Binary Input (read from an incoming file) | | CSV Content | The CSV string to convert (when using Text Input) | | Input Binary Field | The binary field name containing the CSV file (when using Binary Input) |

Shared Options

These options are available for both operations:

| Option | Description | Default | |--------|-------------|---------| | Output Binary Field | Name of the output binary field | data | | File Name | File name for the generated PDF | output.pdf |

PDF Options

| Option | Description | Default | |--------|-------------|---------| | Format | Paper size (A3, A4, A5, Letter, Legal, Tabloid) | A4 | | Landscape | Use landscape orientation | false | | Margin Top | Top margin (e.g. 10mm, 1in, 1cm) | 10mm | | Margin Bottom | Bottom margin | 10mm | | Margin Left | Left margin | 10mm | | Margin Right | Right margin | 10mm |

Example Usage

HTML to PDF

  1. Add a Convert to PDF node to your workflow
  2. Select HTML to PDF as the operation
  3. Enter your HTML content:
    <h1>Invoice #1234</h1>
    <p>Date: 2026-01-15</p>
    <table>
      <thead><tr><th>Item</th><th>Qty</th><th>Price</th></tr></thead>
      <tbody>
        <tr><td>Widget</td><td>10</td><td>$5.00</td></tr>
        <tr><td>Gadget</td><td>3</td><td>$12.50</td></tr>
      </tbody>
    </table>
  4. The node outputs a PDF binary that can be saved, emailed, or passed to other nodes

CSV to PDF

  1. Add a Convert to PDF node to your workflow
  2. Select CSV to PDF as the operation
  3. Enter your CSV content:
    name,email,department
    Alice,[email protected],Engineering
    Bob,[email protected],Marketing
    Carol,[email protected],Sales
  4. The node outputs a PDF with a formatted table

Supported HTML Elements

| Element | Rendering | |---------|-----------| | <h1> - <h6> | Headings with scaled font sizes | | <p> | Paragraphs with spacing | | <strong>, <b> | Bold text | | <em>, <i> | Italic text | | <ul>, <ol> | Bulleted and numbered lists | | <table> | Tables with headers, borders, and alternating row colors | | <hr> | Horizontal rule | | <br> | Line break | | <div>, <section>, <article> | Block containers | | <span> | Inline container |

License

MIT