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
Itsnag8Itsnag8 

Table of Contents in A pdf with Page numbers associated with each of the record

HI ,

 

I have a requirement to add the Table of the content to a PDF page.

 

So far I was able to add the Page number in the header and footer for each page of the PDF, but was not able to get those page number to add in the table of the contents.

 

I am using below code to get the page no in the individual page, but not able get the the consolidated page numbers in the table of the contents.

 

content: "Page " counter(page) "/" counter(pages).

 

Please help me!

Sonam_SFDCSonam_SFDC

Hi,

 

Have you used <div style="page-break-after: always;" /> as explained in the follwing thread in your code:

 http://boards.developerforce.com/t5/Visualforce-Development/Pagination-within-PDF/td-p/191197

 

If not please try out and let me know the result..