1.0.1 • Published 5 years agoCLI
localpdf
Licence
MIT
Version
1.0.1
Deps
1
Size
3 kB
Vulns
0
Weekly
0
LocalPDF
A CLI tool to build Root compatible PDF documents locally.
Usage
- Install wkhtmltopdf locally on your machine: download
- Install localPDF
npm install localpdf -g - Run it in the folder with your html file
localpdf myfile.html myoutputfile.pdf
Usage: localpdf [input_file] [output_file]
Arguments:
> input_file required Path to input HTML file
> output_file optional Path to output PDF file
Development
Installation
- Install wkhtmltopdf locally on your machine: download
- Clone this repo:
git clone ... - Install the dependencies:
cd localpdfandnpm install
[todo: add this to npm registry and allow direct usage]
Usage
After you've installed this repo, you can convert files to PDF using the following command (make sure you've cd'd into the repo folder)
node index.js