Socket
Socket
Sign inDemoInstall

node-red-contrib-html-to-pdf

Package Overview
Dependencies
130
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-red-contrib-html-to-pdf

Node-RED node for converting HTML files to PDF, using the Puppeteer library.


Version published
Maintainers
1
Created

Readme

Source

node-red-contrib-html-to-pdf

A Node-RED node that converts HTML to PDF, using the Puppeteer library.

Install

Either use the Node-RED Menu - Manage Palette - Install, or run the following command in your Node-RED user directory - typically ~/.node-red

npm install node-red-html-to-pdf

Usage

You pass the HTML source code in the msg.payload.

Various options can be set in the node configuration dialog or set as properties of msg:

  • Format (letter, legal, tabloid, ledger, A0, A1, A2, A3, A4, A5, A6, custom)
  • Orientation (portrait, landscape); msg.orientation
  • Zoom (10% to 200%); msg.zoom (number)
  • Margins; msg.marginTop, msg.marginTopUnits, msg.marginLeft etc.
  • Transparent background; msg.omitBackground (true or false)
  • Show or hide background graphics; msg.printGraphics (true or false)

Keywords

FAQs

Last updated on 14 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc