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 ,需要进行以下设置:
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.
the solve of install error:
1. deb http://security.ubuntu.com/ubuntu trusty-security main
2.wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar xvJf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
sudo cp wkhtmltox/bin/wkhtmlto* /usr/bin/