Example usage for com.itextpdf.text.pdf PdfPTable setSplitRows

List of usage examples for com.itextpdf.text.pdf PdfPTable setSplitRows

Introduction

In this page you can find the example usage for com.itextpdf.text.pdf PdfPTable setSplitRows.

Prototype

public void setSplitRows(final boolean splitRows) 

Source Link

Document

When set the rows that won't fit in the page will be split.

Usage

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;
}