I'm having a problem making the footer show only on the last page of the PDF. What I am thinking is that I'll get the last page number and display the footer if the pagenumber == totalpages
.
But I can't get the value of <pagenumber>
tag and assign it to a freemarker variable because it is a tag in BFO. Is there any way I can accomplish that?
<#if pagenumber != totalPage>
<macro id='footer'>Normal Footer</macro>
<#else>
<macro id='footer'>last page footer</macro>
</#if>
I am a beginner at this.