Security News
Combatting Alert Fatigue by Prioritizing Malicious Intent
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
@protacon/html-to-pdf
Advanced tools
Simple tool to convert HTML content to PDF
First of all you have to install npm
and node.js
to your box - note that NodeJS 6+
is required. See following links to help you with installation:
First of all you have to install npm
and node.js
to your box. Installation instructions can
be found here.
Note that node.js 6.x
is required.
$ git clone https://github.com/ProtaconSolutions/html-to-pdf.git
$ cd html-to-pdf
# install the project's dependencies
$ npm install
# fast install (via Yarn, https://yarnpkg.com)
$ yarn install # or yarn
See help
$ npm run convert
# OR
$ node bin/convert
Creating example file
$ npm run convert -- src/examples/example.html example.pdf --data '{"title": "Awesome", "content": "Lorem ipsum dolor."}'
# OR
$ node bin/convert src/examples/example.html example.pdf --data '{"title": "Awesome", "content": "Lorem ipsum dolor."}'
Start server
$ npm start
Then open your http://localhost:3000/
within your favorite browser.
Translators are way to make embedded dataconversions to templates.
data: { barcode: '[translate:type]value'}
Translates textual content as barcode. Output is base64 encoded image string.
data: { barcode: '[translate:barcode]AE5C9B'}
Can be embedded to template HTML:
<img src="{{ barcode }}"/>
Protacon Solutions Ltd
Copyright (c) 2017 Protacon Solutions Ltd
FAQs
Simple tool to convert HTML content to PDF
We found that @protacon/html-to-pdf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.