class RepeatSplitEvent extends PdfPTableEventForwarder { @Override public void afterSplitTable(PdfPTable table, PdfPRow startRow, int startIdx) { for (int i = startIdx - 5; i < startIdx; i++) { table.getRows().add(0, table.getRow(i)); } } }
public void init() { LOGGER.info("Initialize row and cell heights"); for (PdfPRow row : getRows()) { if (row == null) continue; row.calculated = false; for (PdfPCell cell : row.getCells()) { if (cell == null) continue; cell.setCalculatedHeight(0); } } }
public void init() { LOGGER.info("Initialize row and cell heights"); for (PdfPRow row : getRows()) { if (row == null) continue; row.calculated = false; for (PdfPCell cell : row.getCells()) { if (cell == null) continue; cell.setCalculatedHeight(0); } } }
getFittingRows(Float.MAX_VALUE, rowStart); List<PdfPRow> rows = getRows(rowStart, rowEnd); int k = rowStart; for (PdfPRow row : rows) {
getFittingRows(Float.MAX_VALUE, rowStart); List<PdfPRow> rows = getRows(rowStart, rowEnd); int k = rowStart; for (PdfPRow row : rows) {
table.getRows().remove(k); table = new PdfPTable(table); compositeElements.set(0, table); ArrayList<PdfPRow> rows = table.getRows(); for (int i = headerRows; i < rowIdx; ++i) { rows.set(i, null); table.getRows().add(++k, newRow); LOGGER.info("Inserting row at position " + k); ArrayList<PdfPRow> sub = nt.getRows(); ArrayList<PdfPRow> rows = table.getRows(0, realHeaderRows); if (isTagged(canvas)) { nt.getHeader().rows = rows; ArrayList<PdfPRow> rows = table.getRows(rowIdx, k); if (isTagged(canvas)) { nt.getBody().rows = rows; ArrayList<PdfPRow> rows = table.getRows(realHeaderRows, realHeaderRows + footerRows); if (isTagged(canvas)) { nt.getFooter().rows = rows; PdfPRow splitted = table.getRows().get(k); splitted.copyRowContent(nt, lastIdx); } else {
table.getRows().remove(k); table = new PdfPTable(table); compositeElements.set(0, table); ArrayList<PdfPRow> rows = table.getRows(); for (int i = headerRows; i < rowIdx; ++i) { rows.set(i, null); table.getRows().add(++k, newRow); LOGGER.info("Inserting row at position " + k); ArrayList<PdfPRow> sub = nt.getRows(); ArrayList<PdfPRow> rows = table.getRows(0, realHeaderRows); if (isTagged(canvas)) { nt.getHeader().rows = rows; ArrayList<PdfPRow> rows = table.getRows(rowIdx, k); if (isTagged(canvas)) { nt.getBody().rows = rows; ArrayList<PdfPRow> rows = table.getRows(realHeaderRows, realHeaderRows + footerRows); if (isTagged(canvas)) { nt.getFooter().rows = rows; PdfPRow splitted = table.getRows().get(k); splitted.copyRowContent(nt, lastIdx); } else {