Is there a way to position a paragraph absolutely, in a way that also works when a list is added to the paragraph?
A google search shows that I should use ColumnText, but I can't get that to work if there is a list in the paragraph. It simply shows the list items next to each other on the same linie. Here is my test program:
PdfWriter writer=PdfWriter.getInstance(document,new FileOutputStream("/tmp/output.pdf"));
document.open();
ColumnText ct = new ColumnText(writer.getDirectContent());
ct.setSimpleColumn(0,0,300,300);
Paragraph p=new Paragraph();
List list=new List();
list.add(new ListItem("First item"));
list.add(new ListItem("second item"));
list.add(new ListItem("third item"));
p.add(list);
ct.addElement(p);
ct.go();
document.close();
writer.close();