Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
4 Odgovori
6887 Prikazi

Hi,

  I have installed odoo 12 in ubuntu 18.04 .when i print PDF it shows an error like "Wkhtmltopdf failed (error code: -8). Message: b''. I have installed the wkhtmltopdf by following the commands mentioned in the link \https://www.odoo.com/forum/help-1/question/ubuntu-18-04-lts-how-to-install-wkhtmltopdf-0-12-1-134198

Avatar
Opusti

Please use a more specific title, it improves the chances to get help.

Best Answer

This is a font issue, please check https://github.com/odoo/odoo/issues/27487

Avatar
Opusti
Avtor

Thanks

sudo apt install ttf-mscorefonts-installer

Best Answer

Hello Anusha,

Please check the installation location wkhtmltopdf  it should be  /usr/local/bin/wkhtmltopdf

commandline$ whereis wkhtmltopdf

wkhtmltopdf: /usr/local/bin/wkhtmltopdf


Avatar
Opusti
Avtor

it is showing in two different locations /usr/bin/wkhtmltopdf , /usr/local/bin/wkhtmltopdf.but in odoo it is taking from the second path

@subbarao The method shown in https://www.odoo.com/forum/help-1/question/ubuntu-18-04-lts-how-to-install-wkhtmltopdf-0-12-1-134198 is proven and works. The issue posted here is not related to the location.

Avtor

Hi,

I added the report.url in to system parameters and its works fine,even though there is some issue with alignment and all.

It uses symbolic links to provide the proper locations.