We are using iTextSharp5.5.5 to create pdf and ran into issue when positioning text to the bottom of the page. I tried to set the absolute position just like the image but that didn't work. How to display paragraph(paragraphCopyright in below code) at the bottom of the page?
var document = new Document(PageSize.A4.Rotate(), 10, 10, 10, 10);
PdfWriter pdfWriter = PdfWriter.GetInstance(document, new FileStream("Sample.pdf", FileMode.Create));
document.Open();
var paragraphCopyright = new Paragraph("This text should be at the very bottom of the page", new Font(Font.FontFamily.HELVETICA, 20f, Font.BOLD)); // this text should be at the bottom
paragraphCopyright.Alignment = 1;
document.Add(paragraphCopyright);
var imgLogo = iTextSharp.text.Image.GetInstance(@"logo.PNG");
imgLogo.ScaleAbsolute(120, 80);
imgLogo.SetAbsolutePosition(PageSize.A4.Rotate().Width - 140, 20);
document.Add(imgLogo);
document.Close();