jayaram
11/01/2023, 4:06 AMPWN
11/01/2023, 2:41 PM<macrolist>
<macro id="nlheader">
<p>
<div width="60%" float="left" clear="none">
<table width="100%">
<tr>
<td><#if subsidiary.logo?has_content><div top="-20"><img src="${subsidiary.logo@url}" style="width: 135px; height: 45px;" /></div></#if></td>
</tr>
</table>
</div>
<div width="40%" float="left" clear="right">
<table width="100%">
<tr>
<td width="55%"><p align="left" style="font-size: 10pt; margin-right: 7px; text-transform: uppercase; color: #373D3F;"><b>${record.title}</b></p></td>
<td><p style="font-size: 8pt; text-align: right;">Page <pagenumber/> / <totalpages/></p></td>
</tr>
</table>
</div>
</p>
</macro>
<macro id="nlfooter">
<table width="100%" style="padding: 0px; margin-left: 0px;" float="left" clear="none">
<tr>
<td>
<!-- Footer data here -->
</td>
</tr>
</table>
</macro>
</macrolist>
<!-- Then add this to body-tag: -->
<body header="nlheader" header-height="xx%" footer="nlfooter" footer-height="xx%" size="A4">
</body>
PWN
11/01/2023, 2:43 PMjayaram
11/01/2023, 2:45 PMPWN
11/01/2023, 2:52 PM*{/* those only to remove margins */
margin:0;
padding:0;
box-sizing:border-box;
}
html,body{/* make sure to give html and body 100% height */
height:100%;
}
.container{
display:flex;
flex-direction:column;
justify-content:space-between;
height: calc(100% - 45px); /* 100% - footer height (thats the available space)*/
/* Change the 45px to the footer height */
}
footer{/* footer sample */
height:45px;
background-color:#223;
color:#fff;
}
<html>
<body>
<div class="container">
<table class="body" style="width: 100%; margin-top: 10px;">
<td><#--- Body table ---></td>
</table>
<table class="recap">
<td><#--- Table to keep at the bottom ---></td>
</table>
</div>
<footer>This is the footer</footer>
</body>
</html>
jayaram
11/01/2023, 2:55 PMPWN
11/01/2023, 2:58 PMPWN
11/01/2023, 2:59 PMjayaram
11/01/2023, 3:00 PMjayaram
11/01/2023, 3:01 PM