Abhishek Srivastava wrote:
Document doc = new Document(); PdfWriter pw = PdfWriter.GetInstance(doc, new FileStream(@"..\..\test3.pdf", FileMode.Create)); doc.Open(); string[] t = File.ReadAllLines(@"..\..\data.txt"); PdfContentByte cb = pw.DirectContent;ColumnText ct = new ColumnText(cb); ct.SetSimpleColumn(90, 300, 560, 820, 15, Element.ALIGN_JUSTIFIED); List list = new List(true, 10); foreach(string s in t) { ListItem l = new ListItem(s);
l.setAlignment(Element.ALIGN_JUSTIFIED);
List.Add(l); } ct.AddElement(list); ct.Go(); doc.Close();
------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
