Class TableStructElementIterator

java.lang.Object
com.itextpdf.pdfua.checkers.utils.tables.TableStructElementIterator

public class TableStructElementIterator extends Object
Creates an iterator to iterate over the table structures.
  • Constructor Details

  • Method Details

    • hasNext

      public boolean hasNext()
      Checks if there is a next element in the iteration.
      Returns:
      true if there is a next element, false otherwise
    • next

      public PdfStructElem next()
      Gets the next table structure element in the iteration.
      Returns:
      the next PdfStructElem in the iteration
    • getAmountOfRowsBody

      public int getAmountOfRowsBody()
      Gets the number of rows in the body of the table.
      Returns:
      the number of rows in the table body
    • getAmountOfRowsHeader

      public int getAmountOfRowsHeader()
      Gets the number of rows in the header of the table.
      Returns:
      the number of rows in the table header
    • getAmountOfRowsFooter

      public int getAmountOfRowsFooter()
      Gets the number of rows in the footer of the table.
      Returns:
      the number of rows in the table footer
    • getNumberOfColumns

      public int getNumberOfColumns()
      Gets the total number of columns in the table.
      Returns:
      the total number of columns in the table
    • getRow

      public int getRow()
      Gets the zero-based row index of the current table element.
      Returns:
      the zero-based row index of the current element
    • getCol

      public int getCol()
      Gets the zero-based column index of the current table element.
      Returns:
      the zero-based column index of the current element
    • getRowspan

      public int getRowspan()
      Gets the rowspan attribute value of the current table element.
      Returns:
      the rowspan value of the current element (minimum 1)
    • getColspan

      public int getColspan()
      Gets the colspan attribute value of the current table element.
      Returns:
      the colspan value of the current element (minimum 1)