Background image doesnt show up when generating pdf

Hello and happy new year. Im new here and first of all i want to thank the developers for this great program. Anyways as the topic suggests i have this problem when with background images when generating a pdf template.I have used different paths and image types jpg and png’s but it doesnt want to want to work. The image is in

custom/themes/default/images/oplogo.png

and in jpg form.

The code for the image i use is this

<div style="background-image: url('../custom/themes/default/images/oplogo.jpg'); background-repeat: no-repeat; display: block; width: 363px; height: 100px; border-style: solid; border-width: 1px; border-color: black; position: absolute;

As in the code i can see the stroke of the image in the pdf but the image is missing.

Thank you.

Your URL needs to be ‘images/oplogo.png’. Also you need to ensure that the file and folder permission are set correctly.

Hello,
The solution is very simple, insita a table with a cell only in the advanced properties of the table mounting the screen you will find the field: Style, it enter the zoomed image address: background-image: url ('http: //00.000. 0:00 / folder / Name.png '); width: 1028px; height: 873px;
In the Background box Image: http://00.000.00.00/folder/name.png

And ready the background will be available in your PDF.

I hope I have contributed

João Carlos
Soluções em CRM
São Paulo - Brasil