Example usage for com.itextpdf.text.html.simpleparser TableWrapper createTable

List of usage examples for com.itextpdf.text.html.simpleparser TableWrapper createTable

Introduction

In this page you can find the example usage for com.itextpdf.text.html.simpleparser TableWrapper createTable.

Prototype

public PdfPTable createTable() 

Source Link

Document

Creates a new PdfPTable based on the info assembled in the table stub.

Usage

From source file:com.masscustsoft.service.ToPdf.java

License:Open Source License

/**
 * Processes the Table.//from  w  w  w .  j a va  2s  .c o  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);
}