public void ParseHeaders(Dictionary <String, String> headers) { Table table = (Table)AddTable(headers.Count + 1, 2); Styler.SetHeaderTitleStyle(Document.InsertParagraph("Headers")); table.Rows[0].Cells[0].Paragraphs[0].Append("Name").Bold(); table.Rows[0].Cells[1].Paragraphs[0].Append("Value").Bold(); int i = 1; foreach (KeyValuePair <String, String> header in headers) { table.Rows[i].Cells[0].Paragraphs[0].Append(header.Key); table.Rows[i].Cells[1].Paragraphs[0].Append(header.Value); i++; } Styler.SetTableStyle(table); Document.InsertParagraph("").InsertTableAfterSelf(table); }