Page X of Y issue
I tried 3 different ways of displaying Page numbers, OnCloseDocument content is not displaying in the page, none of them worked. My Intention is displaying Page numbers like this 1 of 10 2 0f 10 .............. ............ 10 of 10 on each page I know how to display 1 2 3 4 .... 10 but don`t know how to display total page number I`m using OnCloseDocument to display No.of pages count,but the content in it is not displaying. public class MyPdfPageEventHelpPageNo : iTextSharp.text.pdf.PdfPageEventHelper { protected PdfTemplate total; protected BaseFont helv; private bool settingFont = false;