+ Start a Discussion

How to detect the content of a VF Page rendered as PDF ?

Hello all,


Using renderas="pdf", I'm rendering a VF Page to PDF. My VFP uses a table having a header repeated on each page. In order to do that I'm using the following HTML tag :




etc ..


With the following CSS :


table {-fs-table-paginate: paginate;}


This is working fine.


However in some situations (when the table doesn't have any further rows to be displayed) I don't want the header to be displayed on the last page.


Does anybody know how to achieve this ?


Thank you very much.


Would anybody have an idea about the above ? 


Any idea would be appreciated.


Thank you very much.