I have a VF page render as pdf like that (to simplify) :
<div class"mainContent" style="page-break-after:always;">
<div>
<table>a table with more or less lines (dynamic)</table>
</div>
<div class="footer" style="position:fixed; bottom: 0px;">my footer</div>
</div>
<div class="lastPage">the last page</div>
I put style="page-break-after:always;"
on the first div (mainContent) so the last page is always on a new page (it works).
The footer is fixed at the bottom of the pages, but it is also displayed onthe last page, and I don't want it to be displayed on the last page.
I want it to be displayed on the first page if the table is short enough. If the table contains a lot of lines that create a new page with the table divided on two pages for exmple, I'd like the footer to be displayed only on the second page (at the end of the table, but at the bottom of the page)
Is that possible ?
Blockquote