In my project we generate a document using a template file (HTML) i see the footer gets displayed in all the pages. Is it possible to display the control only in the last page.
Forum › How do I...?
How do i have footer only in last page
I have reduced the content of my html code and included it below. If i have the footer tag like below in the beginning it is displaying the footer in all the pages. When i move it after or before the </pdf>. I couldn't see the footer in any of the pages.
<!DOCTYPE html>
<html>
<pdf baseFont="Helvetica,Cp1252,false">
<page size="A4">
<!-- Footer -->
<footer>
<leading value=10>
<p line-height=0><font face="Arial" size="9">Amazon Music<br>Stream millions</font></p>
</footer>
<table width="95%" border="0" bordercolor="C0C0C0" cellpadding="0">
<tr><td><table border="0" width="100%" cellpadding="0">
<tr><td width="10%"></td><td width="90%"><br></td></tr>
<tr><td width="10%"><font color="ffffff">COL</font></td>
<td width="90%"><font face="Arial" size="14" color="333333">Account Owner Details</font><br></td>
</tr>
<tr><td width="10%"><font color="ffffff">COL</font></td>
<td width="90%"><font face="Verdana" size="9" color="444444">Make Money with Us
<br>Sell Under Amazon
<br>Sell on Amazon
</font>
</td></tr>
</table></td>
<table border="0" width="100%" cellpadding="0">
<tr><td><font face="Verdana" size="10" color="333333"><b> Payment status</b></font></td></tr>
<tr><td width="5%"></td><td width="95%"><br></td></tr>
$%if cart[1].Success[1].payment = 'Success'$
<tr><td width="10%"></td><td width="90%">Your payment is complete</td></tr>
$%endif$
</table>
</pdf>
</html>
<!DOCTYPE html>
<html>
<pdf baseFont="Helvetica,Cp1252,false">
<page size="A4">
<!-- Footer -->
<footer>
<leading value=10>
<p line-height=0><font face="Arial" size="9">Amazon Music<br>Stream millions</font></p>
</footer>
<table width="95%" border="0" bordercolor="C0C0C0" cellpadding="0">
<tr><td><table border="0" width="100%" cellpadding="0">
<tr><td width="10%"></td><td width="90%"><br></td></tr>
<tr><td width="10%"><font color="ffffff">COL</font></td>
<td width="90%"><font face="Arial" size="14" color="333333">Account Owner Details</font><br></td>
</tr>
<tr><td width="10%"><font color="ffffff">COL</font></td>
<td width="90%"><font face="Verdana" size="9" color="444444">Make Money with Us
<br>Sell Under Amazon
<br>Sell on Amazon
</font>
</td></tr>
</table></td>
<table border="0" width="100%" cellpadding="0">
<tr><td><font face="Verdana" size="10" color="333333"><b> Payment status</b></font></td></tr>
<tr><td width="5%"></td><td width="95%"><br></td></tr>
$%if cart[1].Success[1].payment = 'Success'$
<tr><td width="10%"></td><td width="90%">Your payment is complete</td></tr>
$%endif$
</table>
</pdf>
</html>