Java tutorial
import java.io.FileOutputStream; import com.lowagie.text.Document; import com.lowagie.text.List; 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(); List list1 = new List(List.ORDERED, 20); list1.add(new ListItem("A")); list1.add(new ListItem("B")); list1.add(new ListItem("C")); document.add(list1); document.close(); } }