如何在Debian 9"Stretch"的Odoo v10中使wkhtmltopdf正常工作? [英] How to make wkhtmltopdf work in Odoo v10 on Debian 9 "Stretch"?
问题描述
我从 Odoo网站知道,Odoo需要一个特殊的wkhtmltopdf版本:
危险
要打印PDF报告,您必须自己安装wkhtmltopdf:debian存储库中提供的wkhtmltopdf版本不支持页眉和页脚,因此无法自动安装.推荐的版本是0.12.1,可在wkhtmltopdf下载页面的存档"部分中找到.由于没有 Debian Jessie 的正式版本,因此您可以在其他部分中找到我们的官方版本. 我们每晚的服务器.
因此,可以在 Debian Jessie 上安装该库,因为存在一个非正式版本with qt patched
.
-
如果我在 Debian Stretch 中的 Debian Jessie 中使用wkhtmltopdf,则该库无法正常工作.
-
如果我使用
sudo apt-get install wkhtmltopdf
安装wkhtmltopdf,则在尝试打印任何报告时都会收到此警告:Wkhtmltopdf failed (error code: -6). Message: The switch --header-spacing, is not support using unpatched qt, and will be ignored.The switch --header-html, is not support using unpatched qt, and will be ignored.The switch --footer-html, is not support using unpatched qt, and will be ignored.No protocol specified QXcbConnection: Could not connect to display
还有其他方法可以在Debian Stretch中为Odoo安装wkhtmltopdf吗?
Odoo 10和Debian Stretch是否有其他可用版本?
更新
我发现了此Git Hub问题.似乎尚不可用
更新(2019/02/28)
我找到了这个 wiki ,其中Odoo开发人员说该版本 0.12.5-1
. >
我已在 Git Hub问题中阅读了此内容.作者似乎是Wkhtmltopdf的一位开发者:
当前在 wkhtmltopdf/packaging 存储库中的返工包装系统上,您可以下载预览版本对于Linux .如果需要,将为0.12.1创建一些东西,不胜感激,请在0.12.5版本之前修复odoo的所有问题.
I know from the Odoo website that Odoo needs an special wkhtmltopdf version:
Danger
to print PDF reports, you must install wkhtmltopdf yourself: the version of wkhtmltopdf available in debian repositories does not support headers and footers so it can not be installed automatically. The recommended version is 0.12.1 and is available on the wkhtmltopdf download page, in the archive section. As there is no official release for Debian Jessie, you can find ours on the extra section of our nightly server.
So, it is possible to install the library on Debian Jessie because there is an extraofficial version with qt patched
.
If I use the wkhtmltopdf for Debian Jessie in Debian Stretch, the library is not working.
If I install wkhtmltopdf using
sudo apt-get install wkhtmltopdf
I get this warning when I try to print any report:Wkhtmltopdf failed (error code: -6). Message: The switch --header-spacing, is not support using unpatched qt, and will be ignored.The switch --header-html, is not support using unpatched qt, and will be ignored.The switch --footer-html, is not support using unpatched qt, and will be ignored.No protocol specified QXcbConnection: Could not connect to display
Is there any other way to install wkhtmltopdf for Odoo in Debian Stretch?
Is there any other available version for Odoo 10 and Debian Stretch?
Update
I have found this Git Hub issue. It seems it is not available yet
Update (2019/02/28)
I found this wiki where Odoo Developers say the version 0.12.5-1
is recommended for Odoo 10 and later
I have read this on a Git Hub Issue. The writer seems one developer of Wkhtmltopdf:
Currently working on a reworked packaging system in the wkhtmltopdf/packaging repository, you can download preview builds for linux. Will create something for 0.12.1 if required, would appreciate fixing any issues with odoo before the 0.12.5 release.
这篇关于如何在Debian 9"Stretch"的Odoo v10中使wkhtmltopdf正常工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!