8000 GitHub - jainkunal/n8n-html-to-pdf
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jainkunal/n8n-html-to-pdf

Repository files navigation

Banner image

n8n-nodes-html-to-pdf

This is an n8n community node that converts HTML content to PDF using Puppeteer.

Installation

  1. Install the package in your n8n custom nodes directory:
cd ~/.n8n/custom
npm install n8n-nodes-html-to-pdf
  1. Restart n8n

Usage

The node accepts HTML content as input and outputs a PDF file. You can configure the following options:

  • HTML Content: The HTML content to convert to PDF
  • PDF Options:
    • Format: Page format (A4 or Letter)
    • Landscape: Whether to use landscape orientation
    • Margin: Page margins in inches

Example Workflow

  1. Add the "HTML to PDF" node to your workflow
  2. Connect it to a node that provides HTML content
  3. Configure the PDF options as needed
  4. The node will output a binary PDF file that can be saved or processed further

Development

To develop this node:

  1. Clone the repository
  2. Install dependencies:
pnpm install
  1. Build the code:
pnpm build
  1. Link the package to your n8n installation:
cd ~/.n8n/custom
npm link /path/to/n8n-nodes-html-to-pdf

License

MIT

5B98

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0