Odoo Help

3

0
13 Answers
2
Avatar

Jaydeep Barot (jar) India

--Jaydeep Barot (jar)--
5167
| 6 4 8
Gandhinagar, India
--Jaydeep Barot (jar)--


Jaydeep Barot (jar) India
5/8/15, 7:05 AM

Wkhtmltopdf can render png,gif or jpg images as backgrounds.

using the syntax with 5 or more so lines.
<table class="table table-condensed" style="background-image:url('http://fc08.deviantart.net/fs70/i/2011/179/f/a/balloons_stock_2_png_by_mysticmorning-d3kds2w.png');">  


<table class="table table-condensed" style="background-image:url('http://upload.wikimedia.org/wikipedia/en/b/bc/Torus_with_cross-hatched_wireframe.gif');">

2
Avatar

Zbik Poland

--Zbik--
12725
| 7 6 9
Łódź, Poland
--Zbik--


Zbik Poland
12/30/14, 6:17 AM

Wkhtmltopdf cannot render png or gif images as backgrounds. Try converting your background image to a jpg.

EXAMPLE:

<div class="page" t-attf-style="background-image:url('/my_module/static/img/wzor.jpg'); background-size:195mm 282mm; width:195mm; height:282mm;"> 
2 Comments
Mohamed Magdy Egypt
1/19/15, 8:33 AM

I am using jpg image but still the same, the image is only shown in html report and can not be shown in PDF report.

Zbik Poland
1/19/15, 8:50 AM

In my system works ok?! May try to update wkhtmltopdf.

1
Slim BHIRI Tunisia
6/22/16, 12:35 AM

I have faced a same problem and the problem was due to the background CSS shorthand rule (background: ....). So when i separate it to the generic CSS rules (background-image & background-position etc ..) the image has appeared correctly.


Note: I was using a png background.


Hope that helps!

1
Mohamed Magdy Egypt
1/19/15, 8:33 AM

Did anyone find the solution ?

0
Alex Lyngsoe (P) Denmark
3/31/15, 3:55 AM

Did any of you find a solution on this ? I have the same issue with jpg image showing on html but not on pdf report.

2 Comments
dirtyHandsPHP India
4/25/16, 4:44 AM

Same issue.. Any solution?

FlexERP, Alex Lyngsoe (P) Denmark
4/25/16, 5:04 AM
Hi, 
we solved the problem by upgrading the wkhtmltopdf.

2016-04-25 10:44 GMT+02:00 Shiv Modi <shiv.modi4@gmail.com>:

Same issue.. Any solution?

--
Shiv Modi

Sent by Odoo S.A. using Odoo



--
Med venlig hilsen / Best Regards

Alex Lyngsøe

Alex Lyngsøe - IT & Forretningsoptimering
Bøelvej 19, DK-6690 Gørding
Tel. +45 28 56 00 30  CVR.Nr.: 30793277
mail@alexlyngsoe.dk  www.alexlyngsoe.dk   

Odoo OpenSource ERP solutions. Et fleksibelt Online ERP system med mange udvidelses- og tilpasningsmuligheder. Fra 190,- pr. bruger/måned. 

   
0
Ayham Sudan
7/3/15, 7:31 AM

When I installed Odoo.deb from Odoo website (also from nightly), every thing seems Ok, and logos (jpg&gif) printed in pdf reports, this mean that the issue is with the Github Odoo repository.

Ask a Question
Keep Informed
6 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now