hyperpdf
Version:
A command line tool to generate PDF from URL, HTML or Markdown files
29 lines (26 loc) • 1.25 kB
Plain Text
A command line tool to generate PDF from URL, HTML or Markdown files
Options
--help Show this help
--version Current version of package
-i | --input String - The path to the HTML file or url
-o | --output String - The path of the output PDF
-c | --css String - The path to custom CSS
-p | --printBackground Boolean - Whether to print CSS backgrounds.
default - true
-s | --printSelectionOnly Boolean - Whether to print selection only
default - false
-l | --landscape Boolean - true for landscape, false for portrait.
default - false
-m | --marginType Integer - Specify the type of margins to use
0 - default
1 - none
2 - minimum
-d | --disableCache Disable HTTP caching
Usage
$ hyperpdf <input> <output>
$ hyperpdf <input> <output> -l
Examples
$ hyperpdf http://davidmarkclements.com dmc.pdf
$ hyperpdf ./index.html index.pdf
$ hyperpdf ./README.md README.pdf -l
$ hyperpdf ./README.md README.pdf -l -c my-awesome-css.css