By Date: <-- -->
By Thread: <-- -->

Problems with iText with Justified Text



Abhishek Srivastava wrote:

Document doc = new Document();
PdfWriter pw = PdfWriter.GetInstance(doc, new FileStream( (at) "..\..\test3.pdf",
FileMode.Create));
doc.Open();
string[] t = File.ReadAllLines( (at) "..\..\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
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions