The sample demonstrates how to set PDF document§ion template, page header&footer, page number and automatic page number count.