List of usage examples for com.itextpdf.text.pdf PdfPTable setSplitRows
public void setSplitRows(final boolean splitRows)
From source file:com.masscustsoft.service.ToPdf.java
License:Open Source License
/** * Processes the Table.//from ww w . ja v a2 s. co m * @throws DocumentException * @since 5.0.6 */ public void processTable() throws DocumentException { TableWrapper table = (TableWrapper) stack.pop(); PdfPTable tb = table.createTable(); tb.setSplitRows(true); if (stack.empty()) document.add(tb); else ((TextElementArray) stack.peek()).add(tb); }
From source file:gov.nih.nci.firebird.service.registration.AbstractPdfWriterGenerator.java
License:Open Source License
PdfPTable createTable(int numberOfColumns) { PdfPTable table = new PdfPTable(numberOfColumns); table.setWidthPercentage(ONE_HUNDRED_PERCENT); table.setSplitRows(false); table.setSpacingAfter(TABLE_SPACING); table.setKeepTogether(true);// www . j a v a 2 s . c o m return table; }