public void addheader()
{
iTextSharp.text.Font f1 = FontFactory.GetFont("Arial", 13f, 1);
f1.Color = BaseColor.BLUE;
PdfPCell pdfcl = new PdfPCell(new Phrase("Merit List ", f1));
pdfcl.Colspan = 1;
f1.IsItalic();
f1.IsBold();
//f1.SetStyle(4);
pdfcl.PaddingTop = 10f;
pdfcl.HorizontalAlignment = Element.ALIGN_CENTER;
pdfcl.BackgroundColor = BaseColor.WHITE;
pdfcl.VerticalAlignment = Element.ALIGN_LEFT;
pdfcl.Border = 3;
pdfcl.BorderColorBottom = BaseColor.BLACK;
pdfcl.BorderColorTop = BaseColor.WHITE;
pdfcl.BorderColorLeft = BaseColor.WHITE;
pdfcl.BorderColorRight = BaseColor.WHITE;
pdfcl.ExtraParagraphSpace = 0;
pdft.AddCell(pdfcl);
iTextSharp.text.Font f = FontFactory.GetFont("Arial", 15f, 1);
f.IsBold();
f.Color = BaseColor.DARK_GRAY;
PdfPCell pdfcl1 = new PdfPCell(new Phrase("University of Engg & Technology, Lahore ", f));
pdfcl1.FixedHeight = 30f;
pdfcl1.PaddingTop = 30f;
pdfcl1.Colspan = 3;
pdfcl1.HorizontalAlignment = Element.ALIGN_CENTER;
pdfcl1.BackgroundColor = BaseColor.WHITE;
pdfcl1.Border = 0;
pdfcl1.ExtraParagraphSpace = 0;
pdft.AddCell(pdfcl1);
iTextSharp.text.Image img = iTextSharp.text.Image.GetInstance("G:/Visual Studio Pros/Admission_Office/Admission_Office/Photos/UET_Lahore_Logo.png");
PdfPCell pdfcl7 = new PdfPCell(img);
pdfcl7.Colspan = 2;
pdfcl7.BorderColor = BaseColor.WHITE;
pdfcl7.Border = 0;
pdfcl7.PaddingBottom = 5f;
pdft.AddCell(pdfcl7);
iTextSharp.text.Font f2 = FontFactory.GetFont("calibri", 10f, 1);
f2.SetColor(66, 134, 244);
PdfPCell pdfcl2 = new PdfPCell(new Phrase("ARN number", f2));
PdfPCell pdfcl3 = new PdfPCell(new Phrase("Name of Student", f2));
PdfPCell pdfcl6 = new PdfPCell(new Phrase("Email", f2));
PdfPCell pdfcl4 = new PdfPCell(new Phrase("Aggregate", f2));
PdfPCell pdfcl5 = new PdfPCell(new Phrase("Dept of Admission", f2));
PdfPCell pdfcl9 = new PdfPCell(new Phrase("Category", f2));
pdfcl2.BackgroundColor = BaseColor.LIGHT_GRAY;
pdfcl2.BorderWidth = 1f;
pdfcl3.BorderWidth = 1f;
pdfcl4.BorderWidth = 1f;
pdfcl5.BorderWidth = 1f;
pdfcl6.BorderWidth = 1f;
pdfcl9.BorderWidth = 1f;
pdfcl2.BorderColor = BaseColor.GRAY;
pdfcl3.BorderColor = BaseColor.GRAY;
pdfcl4.BorderColor = BaseColor.GRAY;
pdfcl5.BorderColor = BaseColor.GRAY;
pdfcl6.BorderColor = BaseColor.GRAY;
pdfcl9.BorderColor = BaseColor.GRAY;
pdfcl2.Left = 10f;
pdfcl3.Left = 10f;
pdfcl6.Left = 5f;
pdfcl3.BackgroundColor = BaseColor.LIGHT_GRAY;
pdfcl4.BackgroundColor = BaseColor.LIGHT_GRAY;
pdfcl5.BackgroundColor = BaseColor.LIGHT_GRAY;
pdfcl6.BackgroundColor = BaseColor.LIGHT_GRAY;
pdfcl9.BackgroundColor = BaseColor.LIGHT_GRAY;
pdft.AddCell(pdfcl2);
pdft.AddCell(pdfcl3);
pdft.AddCell(pdfcl4);
pdft.AddCell(pdfcl5);
pdft.AddCell(pdfcl6);
pdft.AddCell(pdfcl9);
}