Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
8079 Widoki

Hello,

i just release installation of Odoo 11 and install wkhtmltopdf. Is installed on Ubuntu 18

Now, when I click to "print" for get the PDF, is downloaded by PDF viewer say me that page is empty.

I think it's parameter to manage on wkhtmltopdf, but see which parameter and where I have to modify it.

Any advice ? 

Thanks a lot

Awatar
Odrzuć

it works !


Many thanks Yenthe.

You're welcome! Don't forget to upvote/accept an answer if it has helped you. :-)

Najlepsza odpowiedź

Hi David,

The wkhtmltopdf download packages for Ubuntu 18.04 or not by default working and enabled. You can resolve your issue with the following commands:

sudo wget https://builds.wkhtmltopdf.org/0.12.1.3/wkhtmltox_0.12.1.3-1~bionic_amd64.deb
sudo dpkg -i wkhtmltox_0.12.1.3-1~bionic_amd64.deb
sudo apt-get install -f
sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin
sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin

Afterwards restart your Odoo service and you should be able to print the PDF out fine..

P.S: Original answer was made at https://www.odoo.com/nl_NL/forum/help-1/question/ubuntu-18-04-lts-how-to-install-wkhtmltopdf-0-12-1-134198

Regards,
Yenthe

Awatar
Odrzuć

I tried out the way you posted but it throws an error unable to resolve host address ‘builds.wkhtmltopdf.org’

Powiązane posty Odpowiedzi Widoki Czynność
0
mar 25
2147
1
mar 25
2235
2
lip 24
4703
1
maj 24
3179
2
lut 24
3857