I want to add text in footer of my PDF.
I have used following code to write text in my PDF.
string path= @"C:\test.pdf";
PdfDocument doc = new PdfDocument();
doc.LoadFromFile(path);
PdfPageBase page = doc.Pages[0];
float x= page.Size.Width ;
float y = page.Size.Height;
PdfTrueTypeFont font = new PdfTrueTypeFont(new Font("Calibri", 10f,FontStyle.Bold));
String ReviewedText = "REVIEWED AND ACCEPTED ON " + DateTime.Today.ToShortDateString();
doc.Pages[0].Canvas.DrawString(ReviewedText, font, PdfBrushes.Red, x-175 , y - 35, format);
doc.SaveToFile(path);
After executing the code when I check the PDF I found that the text is written upside down at the top of the page.
Kindly suggest the solution to write text in the footer of PDF.
Thanks in advance.