This question has been flagged

While printing general ledger report I am getting the warning, Wkhtmltopdf failed (error code: -9). Message:

I am using odoo8 and os version is ubuntu 18.04.

The report is printed if there is less pages and if there is more pages it shows this warning.

I have tried 0.12.1, 0.12.3, 0.12.4 and 0.12.5 versions of wkhtmltopdf.

Anyone have any idea?

I am printing the report like this.



Shows the warning as follows.


Avatar
Discard
Best Answer

It's a known issue. You shouldn't use the wkhtmltopdf package from Ubuntu. Odoo recommend the wkhtmltopdf 0.12.1 version from wkhtmltopdf.org website, see this document :
https://www.odoo.com/documentation/12.0/setup/install.html#linux

You can download a working binary package from https://builds.wkhtmltopdf.org/0.12.1.3/

For more info about current wkhtmltopdf and Odoo, see the discussion in this bug report
https://github.com/odoo/odoo/issues/21255#issuecomment-385242505

Otherwise, I wonder if it can come from PyPDF package... because of an update. See my blog post about this missing package and  a workaround :
http://zeroheure.info/how-to-install-odoo-on-latest-debian-ubuntu-without-python-pypdf-dependency/

Hope this help

Avatar
Discard
Best Answer

Same issue any solutions

Avatar
Discard