1.1.1 • Published 3 months ago

node-red-contrib-html-to-pdf v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

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)
1.1.1

3 months ago

1.1.0

3 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.2

1 year ago

1.0.3

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago