Skip to Content
Menu
This question has been flagged
2 Replies
57517 Views

The installation guide states:

wkhtmltopdf is not installed through pip and must be installed manually in version \0.12.5 for it to support headers and footers. See our \wiki for more details on the various versions.

(from \https://www.odoo.com/documentation/14.0/setup/install.html#prepare )

Avatar
Discard

Ray, you may want to change the misleading title, I think you mean wkhtmltopdf, not Webkit :-)

... and, IIRC, wkhtmltopdf was never installable through pip, it had always to be installed manually.

Best Answer

The easiest way to do this is to download the .deb file from the wkhtmltopdf project github. For example, downloading wkhtmltopdf 0.12.5 for Ubuntu 20.04 on amd64:

$ wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.focal_amd64.deb

Then you can install the .deb file with apt:

$ sudo apt install ./wkhtmltox_0.12.5-1.focal_amd64.deb

Hope that helps.

Avatar
Discard

This insallation process raise another error :

wkhtmltox : Depends: libssl1.1 but it is not installable
E: Unable to correct problems, you have held broken packages.

Do you have any solution for this??

Best Answer

@Tarikol Islam

1. Download libssl1.1_1.1.1f-1ubuntu2_amd64.deb from official repository

$  wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb

2. Install it

$  sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb

then install wkhtmltopdf.

Thanks!

Avatar
Discard
Related Posts Replies Views Activity
2
May 24
6313
2
Feb 24
3290
2
Feb 24
4870
2
Oct 23
5289
3
Aug 23
12356