This is an archived forum post. The information may be outdated. Contact us if you have any questions.

Background Image

paddyz wrote on 2013-01-03:
Hello,

any possibility to get a background image in the pdf file with CSS?

background-image:url(); or background:url(); dont work for me.
paddyz wrote on 2013-01-03:
Got it. Absolute path (url) to the image worked.
nitish_developer wrote on 2013-01-28:
It does not seem to work with the setting of the image in background for the table element of the html.

<table style='background-image:url(http://software.agraneeh.com/images/pp.png)'> <tr>
<td>333</td>
<td>666</td>
<td>999</td>
</tr>
<tr>
<td>222</td>
<td>555</td>
<td>888</td>
</tr>
<tr>
<td>111</td>
<td>444</td>
<td>7777</td>
</tr>
</table>
support wrote on 2013-01-28:
This should work. Paste your code here: http://pdfcrowd.com/#convert_by_input and click the "Convert to PDF" button. The generated PDF contains the background image.
webfoo wrote on 2013-07-22:
I'm having difficulty applying a background to individual <td> elements within a table. I have tried both CSS gradients, as well as a plain old JPG but no matter what I do the table cells do not have backgrounds in the finished product. I have enableBackgrounds set to true.

EDIT: I am submitting the html and image files in a ZIP together to the API via PHP.
support wrote on 2013-07-23:
Hello,

If you can post here the ZIP file (or send it to info@pdfcrowd.com), we will take a look at it.
webfoo wrote on 2013-07-24:
I emailed you the ZIP. Thanks much for your help.