Module itextpdf

Class PdfTable

  • All Implemented Interfaces:
    Element

    public class PdfTable
    extends Rectangle
    PdfTable is an object that contains the graphics and text of a table.
    See Also:
    Table, Row, Cell, PdfCell
    • Field Detail

      • table

        protected Table table
        Original table used to build this object
      • positions

        protected float[] positions
        Cached column widths.
    • Method Detail

      • hasToFitPageTable

        public final boolean hasToFitPageTable()
        Checks if this Table has to fit a page.
        Returns:
        true if the table may not be split
      • hasToFitPageCells

        public final boolean hasToFitPageCells()
        Checks if the cells of this Table have to fit a page.
        Returns:
        true if the cells may not be split
      • getOffset

        public float getOffset()
        Gets the offset of this table.
        Returns:
        the space between this table and the previous element.