SelectPdf for .NET - Page Numbering - VB.NET / ASP.NET Sample This sample shows how to create a new PDF document using SelectPdf, how to add several pages and automatic page numbering in the document footer. The footer is a custom pdf template, displayed at the bottom of the page. It can contain all kinds of page elements that will repeat on each page of the pdf document. One special element that can be added to the pdf footer is the text element, that can be used to display page numbers using the {page_number} and {total_pages} placeholders.