wkhtmltopdf错误解决办法

Odoo/openerp 打印报表时,无法输出PDF格式,提示下面的错误
Unable to find Wkhtmltopdf on this system. The report will be shown in html
wkhtmltopdf.org
原因是没有安装wkhtmltopdf或者路径设置不正确.
按照下面的方法可以解决此问题.

到官方网站下载相关程序,根据服务器选择相应的安装包,win-32bit&64bit,ubuntu.....注意版本一定要0.12.1或更高版本.http://wkhtmltopdf.org/downloads.html  下载完后安装.

1 . for Windows  ,需要进行以下设置:

auto_773

2 for Ubuntu 14.04

sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb

     Copy binary or wkhtmltopdf to /usr/bin location from ./usr/local/bin use command

sudo cp /usr/local/bin/wkhtmltopdf /usr/bin/

     Restart Odoo server and try once again.

原文地址:https://www.cnblogs.com/chjbbs/p/5199848.html