Hi everybody,
I found a bug into MultiColumnText class in method addElement.
The method should be written like this:
public void addElement(Element element) throws DocumentException {
if (element instanceof Phrase) {
columnText.addText((Phrase) element);
} else if (element instanceof Chunk) {
columnText.addText((Chunk) element);
} else if (simple) {
columnText.addElement(element);
} else {
throw new DocumentException("Can't add " + element.getClass() + " to
MultiColumnText with complex columns");
}
}
Oherwise if you add a simple Chunk to an irregular column the method throw the
DocumentException but this is a mistake!!!
tks to all------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php