show a table once in the footer in advanced pdf
# ask-stanley-ai
n
show a table once in the footer in advanced pdf
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems that displaying a table or a message only on the last page of an advanced PDF in NetSuite is not directly supported due to the way Freemarker and BFO work for NetSuite's PDF generation. However, there are some workarounds suggested: 1. Instead of using a footer, you can create a table at the end of your code and place it at the bottom of the page. This table will then appear on the last page of the PDF. 2. You can try using HTML/CSS to create a dynamic footer that only appears on the last page. However, this solution might not work directly in NetSuite and you may need to test and troubleshoot it in a browser's developer console first. Here is a sample code provided:
Copy code
html
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}
html,body{
  height:100%;
}
.container{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  height: calc(100% - 45px);
}
footer{
  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>
Please note that these are workarounds and may not work in all cases. ****** 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.842260182
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.841106653
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.837931693
Please provide your feedback on this answer.