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
Nazeer AhamedNazeer Ahamed 

Page Number in PDF

Can we able to count page Number based on <apex:repeat> tag.
Say example, visual force generates PDF from list button where 2 records are selected and click a custom button then as a result PDF generated with totally 5 pages. With help of apex repeat tag, for the first record generates 3 pages and second record generates next 2 pages in a single file.
We need to count a page number in a PDF doc as Page 1 of 3, 2 of 3, 3 of 3 and then again 1 of 2 and 2 of 2.
Is it possible? Any suggestions are highly appreciated. I am using below code to display page number, it is counting from 1 to 5.


<HEAD> <style type="text/css"> @page { @bottom-center{ content: "Page " counter(page) " of " counter(pages); } } } </style> </HEAD>




vikramraj muthayalavikramraj muthayala

Hi Nazzy / Stephan,

I also have a similar requirement,
If you had figured out the Solution ... Could you let me know ?
Nazeer AhamedNazeer Ahamed
I was looking for this almost 4 years back. Not exactly remembering What I did for this that point of time. At this point - I dont have anything specific to achieve this.