I have a field in a custom record that holds an im...
# advancedpdf
p
I have a field in a custom record that holds an image. If I create an advanced pdf and assign to my custom record the image prints fine but if I use the same code when creating a template in a saved search it does not. I thought the issue might be with the url of the image so I went ahead and created a custom field that houses the url for the image (it is being stored in the filing cabinet) and in my pdf code I have the following:
Copy code
<body header="nlheader" header-height="10%" padding="0in 0in 0in 0in" size="Letter">
    <#list results as result>
<div class="mybody"><br /><br /><br /><br />&nbsp;
<p class="s1" style="text-indent: 0pt;align: center;">
  <#if result.custrecord273?has_content>
    <img src="${result.custrecord273}" />
</#if>
  </p>
</div>
</#list>
</body>
When I try and save the code I get this error:
Copy code
Exception during template merging.com.netledger.templates.TemplateServiceException: Exception during template merging.java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 23
What am I missing here?