UNPKG

simple-html-to-pdf

Version:

Quick CLI command for converting HTML (from URL) to PDF

25 lines (15 loc) 490 B
# simple-html-to-pdf > Quick CLI command for converting HTML (from URL) to PDF ## Install ``` $ npm install -g simple-html-to-pdf ``` ## Based on - [PhantomJS Node](https://github.com/amir20/phantomjs-node) - [Phantom HTML to PDF](https://github.com/pofider/phantom-html-to-pdf) ## Usage ``` simple-html-to-pdf --url="http://www.somewebsite.com" --file="/tmp/my.pdf" [--verbose] [--fitToPage] [--phantomDelay] [--printDelay] ``` ## License MIT license; see [LICENSE](./LICENSE).