Skip to Content
Menu
This question has been flagged
2 Replies
58435 Rodiniai

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 )

Portretas
Atmesti

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.

Portretas
Atmesti

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!

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
geg. 24
6437
2
vas. 24
3415
2
vas. 24
4994
2
spal. 23
5425
3
rugp. 23
12453