I am generating a QWeb/Report with the following css rule:
and I see it correctly while printing the report in html. But when I set the report as PDF report the image is not shown.
Is there any way see a background-image in the pdf generated by QWeb/Report?
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');">
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!
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 6/11/14, 3:43 PM|
|Seen: 8450 times|
|Last updated: 6/22/16, 12:35 AM|