com.groupdocs.parser.data

Class PageTableArea



  • public class PageTableArea
    extends PageArea
    Represents a table page area which is used to represent a table in the parsing by template functionality.

    PageTableArea class is used to organize inheritors of PageArea class in table structure.

    • Constructor Detail

      • PageTableArea

        public PageTableArea(Iterable<Double> rows,
                     Iterable<Double> columns,
                     Iterable<PageTableAreaCell> cells,
                     Page page,
                     Rectangle rectangle)
        Initializes a new instance of the PageTableArea class.
        Parameters:
        rows - The collection of row heights.
        columns - The collection of column widths.
        cells - The collection of cells.
        page - The page that contains the table.
        rectangle - The rectangular area that contains the table.
    • Method Detail

      • getRowCount

        public int getRowCount()
        Gets the total number of the table rows.
        Returns:
        An integer value that contains the total number of the table rows.
      • getColumnCount

        public int getColumnCount()
        Gets the total number of the table colums.
        Returns:
        An integer value that contains the total number of the table columns.
      • getRowHeight

        public double getRowHeight(int rowIndex)
        Returns the row height.
        Parameters:
        rowIndex - The zero-based index of the row.
        Returns:
        A double value that represents the height of the row.
      • getColumnWidth

        public double getColumnWidth(int columnIndex)
        Returns the column width.
        Parameters:
        columnIndex - The zero-based index of the column.
        Returns:
        A double value that represents the width of the column.
      • getCell

        public PageTableAreaCell getCell(int rowIndex,
                                int columnIndex)
        Gets the table cell by row and column indexes.
        Parameters:
        rowIndex - The zero-based index of the cell row.
        columnIndex - The zero-based index of the cell column.
        Returns:
        An instance of PageTableAreaCell class; null if no cell is found.