How can I add a footer in only the last page of th...
# ask-stanley-ai
n
How can I add a footer in only the last page of the advanced pdf?
c
AI generated answer (using internal Slack threads):
To add a footer only on the last page of an Advanced PDF in NetSuite, you can use a workaround since the BFO rendering engine for NetSuite's Advanced PDF templates does not support this feature directly. Here's a method you can try: 1. Instead of adding the content as a footer, add it as a table at the end of your code. This table should be positioned at the bottom of the page. Here's a sample code snippet that was shared in the threads:
Copy code
<macro id="nlfooter">
      <table class="footerSP" style="width: 100%">
        <tr>
        </tr>
        <tr>
          <td colspan="3" align="center">Quantity available represents items currently in stock as well as items on order to our warehouse.</td>
        </tr>
        <tr>
          <td colspan="3" align="center"> Prices do no include freight, duties or taxes where applicable.</td>
        </tr>
      </table>
      <table class="footer" style="width: 100%;"><tr>
        <td colspan="3">&nbsp;</td>
        <td align="right" ><pagenumber/> of <totalpages/></td>
      </tr></table>
</macro>
2. Include this in the body tag
footer="nlfooter" footer-height="30pt"
Copy code
<body header="nlheader" header-height="15%" footer="nlfooter" footer-height="30pt" padding="0.5in 0.5in 0.5in 0.5in" size="Letter">
This method will place the table at the end of your content, which will be the last page of your PDF. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.868441105
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.854281485
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.822407067
Please provide your feedback on this answer.