在Debian8.3中解决Odoo出现的问题:Unable to find Wkhtmltopdf on this system. The report will be shown in html.

Posted 欢迎来到我的博客

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在Debian8.3中解决Odoo出现的问题:Unable to find Wkhtmltopdf on this system. The report will be shown in html.相关的知识,希望对你有一定的参考价值。

解决Odoo出现的问题:Unable to find Wkhtmltopdf on this system. The report will be shown in html.

下载wkhtmltopdf文件,我下载的是64位版本,根据你的系统来选择是32位还是64位。

  suod wget http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz

解压文件下载的文件

  tar -vxf wkhtmltox-0.12.3_linux-generic-amd64.tar.xz

得到一个目录wkhtmltox,把wkhtmltopdf复制到/usr/bin目录,更改所有者,并增加可执行属性

  sudo cp wkhtmltox/bin/wkhtmltopdf /usr/bin/
  sudo chown root:root /usr/bin/wkhtmltopdf
  sudo chmod +x /usr/bin/wkhtmltopdf

测试一下 

wkhtmltopdf http://www.baidu.com baidu.pdf

"Done"表明顺利完成,当前目录下出现一个baidu.pdf,打开,正是百度首页。
至此wkhtmltopdf已顺利安装完成,从Odoo客户端,测试打印功能。


OK通过!

  

 

以上是关于在Debian8.3中解决Odoo出现的问题:Unable to find Wkhtmltopdf on this system. The report will be shown in html.的主要内容,如果未能解决你的问题,请参考以下文章