html2pdf-cli

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i html2pdf-cli

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • cperezabo