Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
57623 Visualizações

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
Cancelar

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.

Melhor resposta

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
Cancelar

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??

Melhor resposta

@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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
mai. 24
6326
2
fev. 24
3303
2
fev. 24
4895
2
out. 23
5296
3
ago. 23
12364