title: How to put total page numbers in content page using iText
body: <p>I have a class that create a pdf file using iText. My document has a text that needs appear in the content area of the first page, something like that &quot;This document has 10 pages&quot;. All examples i found to do that, like this <a href="https://stackoverflow.com/questions/22807292/put-page-number-when-create-pdf-with-itextsharp">put page number when create PDF with iTextSharp</a> show the pages number in header or footer, not in content area. Any idea how to do that?</p>