iText is a free and open source library for creating and manipulating
PDF documents in Java. The following example shows adding a lettered list to PDF document.
Document document = new Document(PageSize.A4);
PdfWriter.getInstance(document, new FileOutputStream("test14.pdf"));
//Open the document before adding any content
document.open();
List letteredList = new List(false, true); //Create lettered list
letteredList.add("ONE");
letteredList.add("TWO");
letteredList.add("THREE");
letteredList.add("FOUR");
document.add(letteredList);
document.add(Chunk.NEWLINE); //Add a new line
List letteredList2 = new List(false, true); //Create lettered list
letteredList2.setPreSymbol("|-->"); //The symbol to be prepended to each item
letteredList2.setPostSymbol(":"); //The symbol to be appended to each item