我使用sudo apt-get install wkhtmltopdf
安装了wkhtmltopdf。
但是,当我尝试打印报告时会收到一个odoo警告:
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
我该如何解决这个问题?