Hi everyone,
I am using a custom print format, and if we have multiple pages, I only want the footer to appear at the last page of pdf .
When I use code below the footer appears on every page
<div class="visible-pdf"id="footer-html" >
<table style="width:24.2cm;" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td style="width: 69%; text-align:center; font-size:11px;"> {{doc.in_words}}</td>
<td style="width: 31%;font-size:11px;">{{"{:,.2f}".format(doc.total)}}</td>
</tr>
<tr>
<td><br></td>
<td style="font-size:11px;">{{"{:,.2f}".format(doc.total_taxes_and_charges)}}</td>
</tr>
<tr>
<td><br></td>
<td style="font-size:11px;">{{"{:,.2f}".format(doc.discount_amount)}}</td>
</tr>
<tr>
<td><br></td>
<td style="font-size:11px;">{{"{:,.2f}".format(doc.grand_total)}}</td>
</tr>
<tr>
<td style="font-size:11px;"><br> {{ frappe.get_fullname(doc.owner) }}</td>
</tr>
</table>