Community mailing list archives

Re: WKHTMLTOPDF Issues in Report

Phillip Stack, Phillip
- 05/12/2016 10:05:58
WKHTMLTOPDF version : wkhtmltopdf 0.12.3 (with patched qt)

I found a post wkhtmltopdf_NetworkError which describes changing the web.base.url parameter. I changed this to and my report did display the default odoo image (Not my company image as I was hoping, however this may change if I use /web/binary/company_logo).

This led me to believe that this was a name resolution issue. After some more experimenting it was determined that our web server has a bizarre configuration for internal and external name resolution. Externally we resolve http://odooserverurl/logo.png differently than internally for reasons I wont get into right now. I forgot this when creating the report template. So when I looked at this from my browser using the html report and not pdf everything looked fine, as my browser could resolve the image url correctly. However on the server side wkhtmltopdf (acting on the same host) could not resolve its own url.

Thank you for your input.

On 2016-05-12 09:27 AM, Jeel Khanpara wrote:

Check your wkhtmltopdf version
If it's higher then 0.12.1 it's generate this type of view

On 12-May-2016 6:53 pm, "Phillip" <> wrote:
wkhtmltopdf not rendering http:///logo.png in Qweb 
report. When I look at the html it looks correct, and the image renders. 
When trying to create a report I get a small white box. If I hardcode 
the width and height I get a bigger white box. The exact same report 
works on my Ubuntu installation. I am using Fedora 20. Just wondered if 
anyone has encountered this in the past.

Post to:

Post to: