I want to put dynamic page numbers in the first page(index page) according to the content. Page numbers should vary according to the Contents.
The first page looks like below:
SerialNo Content PageNumber
1 Task1 1(if the Task1 is on first page)
2 Task 2 5(if the Task2 is on fifth page)