Branding is one of the most common customizations in NetSuite Advanced PDF templates. You can add your company logo, header, and footer, and even make them dynamic across subsidiaries.
πΉ Adding a Static Company Logo
If you have a logo uploaded in the File Cabinet:
<img src="${record.logo}" width="200" height="80" alt="Company Logo"/>
βοΈ ${record.logo} automatically pulls the logo defined in the Company Information setup.
πΉ Adding a Dynamic Logo (Multi-Subsidiary)
If your account uses OneWorld, each subsidiary can have a different logo. You can conditionally display based on subsidiary:
<#if record.subsidiary == "1">
<img src="https://system.netsuite.com/core/media/media.nl?id=1234&c=TSTDRV12345&h=abc12345" width="180"/>
<#elseif record.subsidiary == "2">
<img src="https://system.netsuite.com/core/media/media.nl?id=5678&c=TSTDRV12345&h=xyz98765" width="180"/>
<#else>
<img src="${record.logo}" width="180"/>
</#if>
βοΈ Replace id=1234 with your File Cabinet internal ID for the logo.
βοΈ This way each subsidiary shows the correct branding.
πΉ Adding Header Information
Typically includes:
- Company Name
- Address
- Contact Info
Example:
<div style="text-align:center; font-size:14px; font-weight:bold;">
${record.companyname}
</div>
<div style="text-align:center; font-size:11px;">
${record.mainaddress}
</div>
<div style="text-align:center; font-size:11px;">
Phone: ${record.phone!"N/A"} | Email: ${record.email!"info@company.com"}
</div>
<hr/>
πΉ Adding a Footer (Dynamic Year & Legal Text)
<div style="text-align:center; font-size:10px; margin-top:20px;">
Β© ${.now?string("yyyy")} ${record.companyname}. All rights reserved.
</div>
βοΈ ${.now?string("yyyy")} β automatically pulls the current year.
πΉ Adding Watermark or Background
You can add a faint company logo as a watermark by using CSS opacity.
<div style="position:absolute; top:200px; left:200px; opacity:0.1; z-index:-1;">
<img src="https://system.netsuite.com/core/media/media.nl?id=1234&c=TSTDRV12345&h=abc12345" width="400"/>
</div>
πΉ Best Practices for Branding
- Use high-resolution PNG logos with transparent backgrounds.
- Keep logos under 200KB for performance.
- Always test printing in PDF and email (sometimes logos appear differently).
- Store all branding assets in a dedicated File Cabinet folder (e.g.,
/SuiteScripts/Logos).
Leave a Reply