/html2image

convert html to image/pdf by phantomjs

Primary LanguageJavaScriptMIT LicenseMIT

html2image

Convert html to image(png/jpg) or pdf by PhantomJS

Install

npm i -g html2image

Usage

html2image -a https://www.baidu.com

Options

  • -a, --address [value] url address
  • -f, --format [value] output file format (pdf|png|jpeg|gif)
  • -o, --output [value] output file path

Help

html2image -h