Greek List : List « PDF « Java Tutorial






import java.io.FileOutputStream;

import com.lowagie.text.Document;
import com.lowagie.text.GreekList;
import com.lowagie.text.ListItem;
import com.lowagie.text.pdf.PdfWriter;

public class MainClass {

  public static void main(String[] args) throws Exception {
    Document document = new Document();
    PdfWriter.getInstance(document, new FileOutputStream("2.pdf"));
    document.open();
    GreekList greeklist = new GreekList(20);
    greeklist.setGreekLower(true);
    greeklist.add(new ListItem("A"));
    greeklist.add(new ListItem("B"));
    document.add(greeklist);
    document.close();
  }
}








29.53.List
29.53.1.Create an Ordered list
29.53.2.Create an Unordered list
29.53.3.Alphabetical List
29.53.4.Add more space to list
29.53.5.Custom list symbol
29.53.6.RomanList, lower case
29.53.7.Upper case RomanList
29.53.8.Greek List
29.53.9.ZapfDingbatsList
29.53.10.zapfdingbatsnumberlist