// if the table isn't complete, we need to be able to add a footer
if (!table.isComplete())
yTemp -= footerHeight;
// k will be the first row that doesn't fit
// Contributed by Deutsche Bahn Systel GmbH (Thorsten Seitz), splitting row spans
FittingRows fittingRows = table.getFittingRows(yTemp - minY, rowIdx);
k = fittingRows.lastRow + 1;
yTemp -= fittingRows.height;
// splitting row spans
LOGGER.info("Want to split at row " + k);
int kTemp = k;
while (kTemp > rowIdx && kTemp < table.size() && table.getRow(kTemp).isMayNotBreak()) {
kTemp--;
}
if ((kTemp > rowIdx && kTemp < k) || (kTemp == 0 && table.getRow(0).isMayNotBreak() && table.isLoopCheck())) {
yTemp = minY;
k = kTemp;
table.setLoopCheck(false);
}
LOGGER.info("Will split at row " + k);
// Contributed by Deutsche Bahn Systel GmbH (Thorsten Seitz), splitting row spans
if (table.isSplitLate() && k > 0) {
fittingRows.correctLastRowChosen(table, k - 1);
}
// splitting row spans
// only for incomplete tables:
if (!table.isComplete())