There seems to be an issue with rendering lists within cells. The code below creates a pdf with a linebreak between each chunk. Does anyone know if this is a defect, or an unsupported use case? (If it's a bug, I don't mind volunteering to help fix it.)
I'm using iText version 1.01 if that helps.
CODE SAMPLE:
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);Thanks in advance, Rob Dickinson
P.S. Kudos to all the iText developers! In two years of using iText, this is the first time I've found an issue I couldn't resolve myself. iText is so SOLID!!!
_________________________________________________________________
Cell phone �switch� rules are taking effect � find out more here. http://special.msn.com/msnbc/consumeradvocate.armx
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
