When I'm using a html-template with a logo (image) this is ok as html.
When i set "Render as PDF" the image not appear in the document.
Private cloud.
ex:
<html><img align="left" border="0" height="30" src="{!#SETTINGS.invoicelogo#url}" width="148" /></html>
Any idea?
Hi smartsysISV,
I can see logo coming correctly when HTML template with Rendered as PDF in 4.5 version.
Which version of Rollbase you are using?
Thanks,
Rajkumar
Yes, the same template is fine in both 4.4 and 4.5 in the public cloud.
You can use a template like the one i show in the initially case-description.
In html everything is fine, when render as pdf the image disappear.
It has to be something with the pd4ml-congfig in my private cloud, but I can't see any options.
Follow these steps to enable PD4ML config in your private cloud:
- Log in to master/root tenant
- navigate to /master/system/liveProps.jsp
- Add an entry with these values
Key: enablePD4MLDebug
Value: true
- Now perform the PDF generation and you should see some PD4ML logging in tomcat logs (<tomcat>/logs/catalina.out or catalina.<todays_date>)
If the image token was correctly resolved you will see PD4ML making a request to fetch the image using the URL. Verify that url to ensure that the image is reachable from the server.
NOTE: Remember to turn off this setting later, if you are in production.
Here is errormessages in log:
version: PD4ML 3100 Pro DMS
cache disabled.
(re-)reading www.smartlogin.no:8830/.../Image
loading www.smartlogin.no:8830/.../Image [1003ms]
Connection refused: connect: www.smartlogin.no:8830/.../Image (socket timeout 0ms)
image www.smartlogin.no:8830/.../Image has zero length.
can not load image: www.smartlogin.no:8830/.../Image
done in 1059ms.
I can see errormessage "Connection refused" and socket timeout?
But if I try to open this address form a web-browser the logo is loading ok.
If i try to show this template as html (and not render as pdf) it also works fine.
Hi Stein,
Make sure the server (not a client browser) can resolve smartlogin.no DNS name and has a routing to it. Log into the server and try to load any smartlogin.no URL with wget,curl or anything similar.
Anvi
I had the same issue.
Problem in internal connectivity.
How do you fix this?
Your network guys should be able to resolve this.