In a FreeMarker template page, you will find one header and one footer.
If you want to add a div between the header and footer that extends all the way down to the footer, you can use the following code:
<?xml version="1.0"?>
<!DOCTYPE pdf PUBLIC "-//big.faceless.org//report" "report-1.1.dtd">
<pdf>
<head>
<macrolist>
<macro id="nlheader">
<table style="width: 100%; font-size: 10pt; position:fixed">
</macro>
<macro id="nlfooter">
<table class="footer" style="width: 100% ;position:fixed">
</macro>
</macrolist>
</head>
<body header="nlheader" header-height="10%" footer="nlfooter" footer-height="65pt" padding="0.5in 0.5in 0.5in 0.5in" size="Letter">
<table>
<tr>
<td>Here is a table</td>
</tr>
</table>
<table>
<tr>
<td>
<div id="extend_div"></div>
</td>
</tr>
</body>
</pdf>
Unfortunately, the height attribute of HTML tags doesn't work as intended in FreeMarker templates. Additionally, using JavaScript to detect the height of tables may also not give accurate results.
To make sure your div extends to the footer, consider adjusting CSS properties or using specific positioning methods.