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
Shruti NigamShruti Nigam 

how to start the page numbering from specific page in vf page

Hi all,

I need to add page number from specific page  in the pdf page.
Thanks in advance
Best Answer chosen by Shruti Nigam
Khan AnasKhan Anas (Salesforce Developers) 
Hi Shruti,

Greetings to you!

You can add the page number to the header or footer by using @Page in CSS and you can exclude header and footer from starting pages. Please refer to the below links which might help you further with the above requirement.

https://salesforce.stackexchange.com/questions/82304/visualforce-pdf-with-dynamic-header-footer-but-cover-page-should-not-have-heade

https://www.sundoginteractive.com/blog/headers-and-footers-pdf-salesforce

You can find a very good document on how to use CSS to format PDF files here:
https://www.antennahouse.com/CSSInfo/CSS-Page-Tutorial-en.pdf

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas