Wkhtmltopdf failed (error code: -6).

My odoo crash in printing area after i did bla bla bla. This is the list of error message:

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.
QXcbConnection: Could not connect to display

So after searching, i follow from this site https://www.linode.com/docs/websites/cms/install-odoo-10-on-ubuntu-16-04

This is the link i downloaded: https://downloads.wkhtmltopdf.org/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb

Than, after installation i copy to /usr/bin/:

  1. sudo cp /usr/local/bin/wkhtmltopdf /usr/bin
  2. sudo cp /usr/local/bin/wkhtmltoimage /usr/bin

Thats it, done!

Advertisements

About this entry