You can customize the code provided at https://help.salesforce.com/s/articleView?id=000385370&type=1 . This example code demonstrates how to include a header or footer element that includes the details such as "Page 1 out of 2" in footer or an additional title to remind the user what page they printed.
Are you asking about the header and footer in PDF? Can you elaborate more so I can suggest better? Thanks
You can customize the code provided at https://help.salesforce.com/s/articleView?id=000385370&type=1 . This example code demonstrates how to include a header or footer element that includes the details such as "Page 1 out of 2" in footer or an additional title to remind the user what page they printed.
Related:
https://salesforce.stackexchange.com/questions/155291/visualforce-pdf-how-to-display-footer-on-all-pages
https://www.gaurishgoel.com/2018/01/visualforce-page-pdf-header-footer.html
If this information helps, please mark the answer as best. Thank you
I want to get like this kind of pdf from vf pages, how to get it?