Handle Content Overlapping in the PDF print

There may be a chance to to break the rest of contents display due to more contents in a column. To handle this by controlling contents length as follow

<table style="width:100%;">
<tr>
<td>   
<#if item.description?has_content>
<#assign len = item.description?length>
<#if len &lt; (maximam characters are fit into a column)>
${item.description}
<#else>${item.description?substring(0, (maximam characters are fit into a column) )}
</#if>
</#if>
</td>
</tr>
</table>

Leave a comment

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