How to find current (X, Y) position in iTextSharp?
I need to create a PDF with several sections, and after each section need to add a line, but I don't know where to draw this line. I need to find the exact coordinates [x, y] where the next element in the document will be write. Like @Olaf said, use GetVerticalPosition to get the Y . The X is just the document's LeftMargin . Below is a full working WinForms app targeting iTextSharp 5.1.1.0 that hopefully does what you are looking for: using System; using System.Text; using System.Windows.Forms; using iTextSharp.text; using iTextSharp.text.pdf; using System.IO; namespace