public static void FillHeaderLabels(ref PdfPTable table, string[] hdrNameList, iTextSharp.text.Font font) { foreach (string hdr in hdrNameList) { PdfReports.AddText2Table(table, hdr, font, "center"); } }