Skip to Content
Menú
This question has been flagged
2 Respostes
58360 Vistes

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
Descartar

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
Descartar

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
Descartar
Related Posts Respostes Vistes Activitat
2
de maig 24
6432
2
de febr. 24
3397
2
de febr. 24
4988
2
d’oct. 23
5414
3
d’ag. 23
12425