有很多可用的例子。寻找关键字ColumnText。
例如看这个例子:http: //itextpdf.com/examples/iia.php ?id=68
您需要的代码如下所示:
float middle = (document.left() + document.right()) / 2;
float[][] columns = {
{ document.left(), document.bottom(), middle - 15, document.top() } ,
{ middle + 15, document.bottom(), document.right(), document.top() }
};
ColumnText ct = new ColumnText(writer.getDirectContent());
ct.addElement(table);
int column = 0;
int status = ColumnText.START_COLUMN;
while (ColumnText.hasMoreText(status)) {
ct.setSimpleColumn(
COLUMNS[column][0], columns[column][1],
COLUMNS[column][2], columns[column][3]);
status = column.go();
if (++count > 1) {
count = 0;
document.newPage();
}
}