0
votes

I have installed wkhtmltopdf using sudo apt-get install wkhtmltopdf. But when i try to print a report getting an odoo warning:

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

How can i resolve this?

1
What does this question have to do with C++? Or Qt?Lightness Races in Orbit
Those tags are suggested by stackoverflow.KbiR
That doesn't mean you have to use them. You should use your brain to decide whether the suggestions are accurate. Stack Overflow is not psychic!Lightness Races in Orbit

1 Answers

3
votes

From Odoo website

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.