I can't insert something as “Page X of Y” into my PDF footer using iTextSharp
问题 I am pretty new in iTextSharp and I have the following situation: I am creating a PDF that contains an header and a footer (for the header and footer creation I am using a class that extends PdfPageEventHelper and I have override the OnStartPage() and the OnEndPage() method, it work fine). Now my problem is that I have to insert as Page X of Y into my footer. Where X**is the **current page number and Y is the total page number . The value of Y is not fixed (because the length of my PDF is not