Hi
*
I need to
create ordered and unordered lists inside a table. The listitem chunks need
to be formated. The problem now is that in the resulting pdf there's a
linebreak between each chunk. Any help very appreciated!
used itext version
1.01
Thanks
Ron
ps:
codefragment:
document.open();
Table aTable = new Table(1, 1);
aTable.setPadding(3.0f);
Cell cell = new Cell();
List list = new List(false, 20);
ListItem listItem = new ListItem();
Paragraph para = new Paragraph();
Phrase phrase = new Phrase();
phrase.add(new Chunk("first chunk", FontFactory.getFont(FontFactory.TIMES_ROMAN, 12)));
phrase.add(new Chunk("second chunk", FontFactory.getFont(FontFactory.TIMES_ROMAN, 11, Font.ITALIC)));
para.add(phrase);
listItem.add(para);
list.add(listItem);
cell.add(list);
aTable.addCell(cell);
document.add(aTable);
Table aTable = new Table(1, 1);
aTable.setPadding(3.0f);
Cell cell = new Cell();
List list = new List(false, 20);
ListItem listItem = new ListItem();
Paragraph para = new Paragraph();
Phrase phrase = new Phrase();
phrase.add(new Chunk("first chunk", FontFactory.getFont(FontFactory.TIMES_ROMAN, 12)));
phrase.add(new Chunk("second chunk", FontFactory.getFont(FontFactory.TIMES_ROMAN, 11, Font.ITALIC)));
para.add(phrase);
listItem.add(para);
list.add(listItem);
cell.add(list);
aTable.addCell(cell);
document.add(aTable);
