Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
4 Ответы
6893 Представления

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

Аватар
Отменить

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

Лучший ответ

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

Аватар
Отменить
Автор

Thanks

sudo apt install ttf-mscorefonts-installer

Лучший ответ

Hello Anusha,

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

commandline$ whereis wkhtmltopdf

wkhtmltopdf: /usr/local/bin/wkhtmltopdf


Аватар
Отменить
Автор

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.

Автор

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.