I am trying to place my page number at a specific location but it is not doing what its supposed to be doing. here is my code snippet:
//Header that goes on each page
headerText = "Received:" +
DateTime.Now.ToLongDateString() + " " + DateTime.Now.ToLongTimeString() + " Page # of " + numPages;
// Create formatted text for page number
FormattedText pageNumFormattedText = new FormattedText(headerText, new FontColor((byte)0, (byte)0, (byte)0),
FontStyle.TimesRoman, EncodingType.Winansi, false, 9.0f);
pdfFileStamper = new PdfFileStamp(memStreamOriginal, memStreamOutput);
pdfFileStamper.AddPageNumber(pageNumFormattedText, pdfFileStamper.PageWidth + 40 , pdfFileStamper.PageHeight - 18);