So i want to fix the item table height on a page despite the number of items present in that table. The table itself is dynamic but i looking for the right answer that is there any way to achieve this desired functionality where i can set a maximum height that should appear on every page of that Invoice even when the items details are just covering the half of the page.Right Now , i have the following code to produce the dynamic rows:
<#if record.item?has_content>
<table class="itemtable" style="width: 100%;border:1px solid black; margin-top:10px;"><!-- start items --><#list record.item as item>
<#if item_index==0>
<thead>
<tr>
<th align="center">Item</th>
<th align="center">Description</th>
<th align="center" >Quantity</th>
<th align="center">Price</th>
<th align="center">Amount</th>
</tr>
</thead> </#if>
<tr style="background-color: ${((item_index % 2)==0)?string("#FFFFFF", "#DCDCDC")}">
<td ><span class="itemname" style="text-transform:uppercase;">${item.item}</span></td>
<td >${item.description}</td>
<td >${item.quantity}</td>
<td >${item.rate}</td>
<td >${item.amount}</td>
</tr>
</#list><!-- end items -->
</table>
</#if>
The above code is keeping the table height maximum to the number of rows added dynamically which needs to be fixed on that page. So something similar to the choice we have in excel template is required here.