private float getTextWidth(string text) { var width = PdfFont.Fonts.First().BaseFont.GetWidthPoint(text, PdfFont.Size); return width; }