function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jhelblingjhelbling 

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 :

 

 

 

<thead>
<tr>
<th>
 </th>
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.

jhelblingjhelbling

Would anybody have an idea about the above ? 

 

Any idea would be appreciated.

 

Thank you very much.