Posted on: 11/30/2012 9:20:07 PM | Views : 623

Hi
i have this code
string pdfpath = ResolveUrl("~/"); string imagepath = Server.MapPath("obras"); string cert = Server.MapPath("cert"); Document doc = new Document(PageSize.A4, 20, 20, 20, 20); PdfWriter writer = PdfWriter.GetInstance(doc, new FileStream(cert + "/Doc1.pdf", FileMode.Create)); doc.Open(); // headder Paragraph p1 = new Paragraph(); p1.Font.Size = 16; p1.Font.SetStyle(3); p1.Alignment = 1; // 0 - Left, 1 - Center, 2 - Right, 3 - Justify p1.Add("Line 1"); p1.Add("\n\n"); doc.Add(p1); // body ...

Go to the complete details ...