Hello there,
I am using Suitecrm 8.
It’s now more than a week that I have been trying to insert an image as background in a pdf template
with no success (I use the tinymce html editor).
At the beginning I found out that the url(’…) was truncated after saving. So looking for a solution
reading several topic about the same issue I found out a workaround commenting in the file /data/SugarBean.php the following two lines:
//$this->$key = SugarCleaner::cleanHtml($this->$key, true);
//$this->$key = SugarCleaner::cleanHtml($this->$key, true);
I did it and now the background url (’…) is no more truncated and I can see the image after saving the template.
Look the attached image showing the partial invoice pdf template after saving. It shows the earth image behind the table header.
Once I convert the template (invoice) to pdf the image does not show. It shows just the background
color If I set it.
The same image displays ok in the pdf if I insert it as simple image (src=…).
So as an alternative workaround I tried styling the image adding “position:absolute” and “z-index:-1”.
While editing everything is ok, but after saving the template, the two added style disappear.
Does anybody has a solution to display an image as background in pdf?
Thanks in advance
Mario