Ir al contenido
Menú
Se marcó esta pregunta
4 Respuestas
5027 Vistas

Hello everyone, 


the company logo is missing on my proposal and invoice PDFs. I've already uploaded the logo.png via settings > company > document layout. wkhtmltopdf 0.12.5 is also installed. I am Odoo Community 16.0. Does anyone know why the logo won't show?

Avatar
Descartar
Mejor respuesta

Hi,

Firstly, please check the version of wkhtmltopdf installed on your system by using the following terminal command:wkhtmltopdf --version

 To get the header and footer in the PDF reports the wkhtmltopdf with patched qt needs to be available,ie, For example:When you check the version of wkhtmltopdf like the example below, The output should include (with patched qt) along with the version number, like this:

wkhtmltopdf 0.12.5 (with patched qt)


Hope it helps

Avatar
Descartar
Mejor respuesta

Same problem. odoo 17 original docker.


edit: OK, I found that some styling combinations are supported by web preview, but not rendered by the PDF engine. In my case it was class="mw-100 mh-100"​ for the logo

Avatar
Descartar
Autor Mejor respuesta

Thank you! Unfortunately this did not fix it. 

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
nov 22
4054
1
dic 22
5390
0
sept 15
4531
0
mar 15
3664
1
jun 25
1343