I want to get subsidiary logo in advanced pdf of c...
# advancedpdf
m
I want to get subsidiary logo in advanced pdf of check record but getting question mark image
n
You will want to share the line of code to help people help you I imagine.
m
<td width="33%"><img src= "${check.subsidiary.logo@url}" height="100px" width="100%"></img></td>
s
try
subsidiary.logo@url
instead (remove
check.
from the beginning). I think you can get the subsidiary id and name from the check record, but not any other fields. However, a lot of templates get the subsidiary passed in as a top-level value that you can access, and more fields are available from that object.
m
Sure i will check that
p
Copy code
<#if subsidiary.logo?has_content><div top="-20"><img src="${subsidiary.logo@url}"  style="width: 135px; height: 45px;" /></div></#if>
the DIV part I use for fine-tuning height but not needed, the ?has_content check menas you don't get broken link if its missing