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

background image not displaying in pdf

jaxtaposition wrote on 2018-12-10:
background image in html table not displaying in pdf generated i.e:

<table style="width:775px;margin-top:5px;margin-bottom:0px;height:760px; margin-left:2px; margin-right:2px;" background="C:\CMS\Executable\recurs\image1.png" border="0" >

How can i render the image?Im using java with the api.
support wrote on 2018-12-11:
Pdfcrowd is a web service and all conversions run on our servers. So all assets must be accessible remotely. Your background image is using link to your local PC (C:\CMS\Executable\recurs\image1.png), we can't access it.

You should either add your image to some public server or use convertFile, convertFileToFile or convertFileToStream method and add all assets into a zip file.
https://pdfcrowd.com/api/html-to-pdf-java/#convert_file