Limiting the number of characters of description in PDF template

We can limit the number of characters in the decription , item name etc in the PDF template code.

<tr>
	
<td colspan="12">
<#if item.description?has_content>
<#assign desc_len=item.description?length>
<#if desc_len &lt; 1563>${item.description}
<#else>${item.description?substring(0,1563)}</#if></#if></td>
</tr>

Leave a comment

Your email address will not be published. Required fields are marked *