Java tutorial
import java.io.FileOutputStream; import com.lowagie.text.Document; import com.lowagie.text.ListItem; import com.lowagie.text.RomanList; 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(); RomanList romanlist = new RomanList(20); romanlist.setRomanLower(false); romanlist.add(new ListItem("A")); romanlist.add(new ListItem("B")); document.add(romanlist); document.close(); } }