安装wkhtmltopdf:brew install wkhtmltopdf

 

  linux安装:

  下载文件:https://wkhtmltopdf.org/downloads.html

  sudo apt-get install xfonts-encodings xfonts-utils xfonts-base xfonts-75dpi

  dpkg -i wkhtmltox-0.12.2.1_linux-trusty-amd64.deb

  wkhtmltopdf -V