iText is a free and open source library for creating and manipulating
PDF documents in Java. The following example shows adding an unordered list to PDF document.
Document document = new Document(PageSize.A4);
PdfWriter.getInstance(document, new FileOutputStream("test15.pdf"));
//Open the document before adding any content
document.open();
List list = new List();
list.add("ONE");
list.add("TWO");
list.add("THREE");
list.add("FOUR");
document.add(list);
document.add(Chunk.NEWLINE); //Add a new line
List list2 = new List(30); //List with user given indent
list2.add("ONE");
list2.add("TWO");
list2.add("THREE");
list2.add("FOUR");
document.add(list2);