Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
node-red-contrib-html-pdf-converter
Advanced tools
A Node-RED node to convert HTML to PDF without using a browser.
node-red-contrib-html-pdf-converter
The node-red-contrib-html-pdf-converter
node allows you to convert HTML content into a PDF file. This node is useful for generating PDF reports or documents from HTML content within your Node-RED flows.
To install this node, use the Node-RED Palette Manager or install it directly via npm:
npm install node-red-contrib-html-pdf-converter
The node-red-contrib-html-pdf-converter
node converts HTML content received on its input into a PDF file and saves it to a specified directory.
Specify the base name for the generated PDF file. The node will automatically append a counter to ensure that each file name is unique.
report
This will generate files like report_1.pdf
, report_2.pdf
, etc.The path where the PDF files will be saved. This path is fixed to node-red/PDFs/ and is displayed as read-only in the configuration.
Here is an example flow to use the node-red-contrib-html-pdf-converter
node:
[
{
"id": "html-to-pdf-node",
"type": "html-to-pdf",
"name": "Generate PDF",
"pdfName": "report",
"x": 300,
"y": 200,
"wires": [
[
"debug-node"
]
]
},
{
"id": "inject-node",
"type": "inject",
"name": "Inject HTML",
"payload": "<h1>Hello World</h1>",
"payloadType": "str",
"topic": "",
"x": 100,
"y": 200,
"wires": [
[
"html-to-pdf-node"
]
]
},
{
"id": "debug-node",
"type": "debug",
"name": "Debug Output",
"active": true,
"x": 500,
"y": 200,
"wires": []
}
]
node-red-contrib-html-pdf-converter Node Configuration
node-red/PDFs/
directory.If you have suggestions or improvements, feel free to contribute to the repository or open an issue.
This node is licensed under the MIT License.
FAQs
A Node-RED node to convert HTML to PDF without using a browser.
The npm package node-red-contrib-html-pdf-converter receives a total of 11 weekly downloads. As such, node-red-contrib-html-pdf-converter popularity was classified as not popular.
We found that node-red-contrib-html-pdf-converter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.