Hello everyone,
I wanted to add a background image in my documents like invoices and quotations. The background has to be displayed on the full page (that's why I can't use the standard option, which only apply background on invoices lines).
I changed the XML layout by adding the following line in my "external_layout_standard" Qweb, on the second line :
<div class="page" style="background-image: url('url of my image'); background-size: cover; background-position: center; background-repeat: no-repeat; min-height: 100vh">
Everything works fine when I try too preview my invoice in HTML, but at the time I try to export it in PDF, the background disappear.
Do you know how I can correct this?
Thank you very much and best regards,
Chris
Is "url('url of my image')" a relative path, absolute path or an actual URL that is reachable independently (i.e. when c&p into a incognito/private browser window)?
Hello, this is an URL reachable independently.
To complete the informations, I also tried to encode it directly on a base64 and give the code directly in the XML, and I have the same behavior (it print fine on HTML preview but doesn't appear on PDF)