Hello all,
i have a similar Problem with an image in pdf templates, maybe someone could check out the code section in my already created Topic over here and give me a hint whats wrong:
In the Preview the Image is centered in the middle of the template, if i use the function "print to pdf" the image is not there.
many many thanks in advance!
Images in pdf templates not working with latest update
Collapse
X
-
Thanks a lot. I use the Upload Button now, and this works for me. Thanks again for your support.Leave a comment:
-
With Dompdf engine, this ability it disabled, as it's not secure to be able to refer internal files.
If you need to an image, you can just upload it in an PDF template.
Or you can switch back to the Tcpdf. See the release notes of v8.1. https://github.com/espocrm/espocrm/issues/2910Leave a comment:
-
Hi, I updated to EspoCRM 8.1 and Sales Pack 2.1.4.
My templates are using a logo: <img src="/client/img/2x4_Logo_Large_RGB.png" style="width: 80px;height:80px;">
With the latest version, the pdf does not print the logo anymore, although I can see the logo in the pdf editor preview. So the logo is there.
When I add a new logo and use the upload button, it does use the new logo. The html for that is: <img src="?entryPoint=attachment&id=65c4b099af5398d ef" style="width: 80px;height:80px;">
I did not change anything to my /client/img directory, so I am not sure why this is a problem.
Thanks,
BernhardLeave a comment:
-
Did you configure the correct pdf engine? Are your templates made with TCPDF? Because by default in espoCRM now DomPDF is configured.Leave a comment:
-
Images in pdf templates not working with latest update
Hi, I updated to EspoCRM 8.1 and Sales Pack 2.1.4.
My templates are using a logo: <img src="/client/img/2x4_Logo_Large_RGB.png" style="width: 80px;height:80px;">
With the latest version, the pdf does not print the logo anymore, although I can see the logo in the pdf editor preview. So the logo is there.
When I add a new logo and use the upload button, it does use the new logo. The html for that is: <img src="?entryPoint=attachment&id=65c4b099af5398d ef" style="width: 80px;height:80px;">
I did not change anything to my /client/img directory, so I am not sure why this is a problem.
Thanks,
BernhardTags: None
Leave a comment: