Skip to content

martip/node-red-contrib-html-to-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •