Jira Task: BLL-50
This below code sample fetch the document URL from a document field. Then the document is added to the specified area of the print using <#include> tag.
<#assign url1=record.custbody_jj_mar48_document@url>
<#if url1?has_content>
<#assign ind1=url1?keep_after("id=")>
<#assign ind= ind1?keep_before(" &")>
<#assign ha1=url1?keep_after("h=")>
<#assign ha= ha1?keep_before(" &")>
<#include "https://4594915-sb1.app.netsuite.com/core/media/media.nl?id=${ind}&c=4594915_SB1&h=${ha}&_xt=.html" />
</#if>