1.0.1 • Published 7 years ago

html2pdf-cli v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

CLI HTML to PDF converter

About

Just a simple CLI converter based on html-pdf

Installation

$ npm install -g html2pdf-cli

Usage

$ html2pdf -h
usage: html2pdf-cli [-h] [-v] -s SOURCES -d DESTINATION [-o OPTIONS]

CLI HTML to PDF converter

Optional arguments:
  -h, --help            Show this help message and exit.
  -v, --version         Show program's version number and exit.
  -s SOURCES, --sources SOURCES
                        A file or a glob string. Example: file.html or '*.
                        html'
  -d DESTINATION, --destination DESTINATION
                        A folder. Example: pdf/
  -o OPTIONS, --options OPTIONS
                        html-pdf options. Can be a JSON file or string

Example:

$ html2pdf -s file.html -d ./pdf  
$ html2pdf -s './path/**/*.html' -d ./pdf -o ./options.json

Options

https://www.npmjs.com/package/html-pdf#options

##Problems? Open an Issue

1.0.1

7 years ago

1.0.0

7 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago