Hi,
I am trying to add a Unordered list to a cell in table on a pdf
document. It is not displaying the bullet and the order. It displays the
content in one line. If I add the list to the document, it is displaying
correctly. The following is the code snippet i am using.
Paragraph p = new Paragraph();
List list = new List(false, 10);
list.setListSymbol(new Chunk("\u2022",
FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD)));
list.add("Wild At Heart");
list.add("Casablanca");
list.add("When Harry met Sally");
list.add("True Romance");
list.add("Le mari de la coiffeuse");
p.add(list);
document.add(p);
Table t = new Table(1);
t.addCell(new Cell(" Hello "));
Cell c = new Cell();
c.add(p);
t.addCell(c);
document.add(t);
Here is the output generated from the above code. Please let me know
how to add an unordered list to a table on pdf
(See attached file: Bulllet.pdf)
Thanks
Srinivasulu Vempuluru
Bulllet.pdf
Description: Adobe PDF document
