Document doc = new Document(iTextSharp.text.PageSize.A4);
System.IO.FileStream file = new System.IO.FileStream(Server.MapPath("~/PDF/PdfSample") + DateTime.Now.ToString("ddMMyyHHmmss") + ".pdf",System.IO.FileMode.OpenOrCreate);
PdfWriter writer = PdfWriter.GetInstance(doc, file);
doc.Open();
PdfPTable tab = new PdfPTable(3);
PdfPCell cell = new PdfPCell(new Phrase("Header",
new Font(Font.FontFamily.HELVETICA, 24F)));
cell.Colspan = 3;
cell.HorizontalAlignment = 1;
cell.BorderColor = new BaseColor(System.Drawing.Color.Red);
cell.Border = Rectangle.BOTTOM_BORDER;
cell.BorderWidthBottom = 3f;
tab.AddCell(cell);
tab.AddCell("R1C1");
tab.AddCell("R1C2");
tab.AddCell("R1C3");
tab.AddCell("R2C1");
tab.AddCell("R2C2");
tab.AddCell("R2C3");
cell = new PdfPCell();
cell.Colspan = 3;
iTextSharp.text.List pdfList = new List(List.UNORDERED);
pdfList.Add(new iTextSharp.text.ListItem(new Phrase("Unorder List 1")));
pdfList.Add("Unorder List 2");
pdfList.Add("Unorder List 3");
pdfList.Add("Unorder List 4");
cell.AddElement(pdfList);
tab.AddCell(cell);
doc.Add(tab);
doc.Close();
file.Close();