Provides parameters for the table detection algorithms.
There are two algorithms to detect a table:
Allows to detect a table in the rectangular area with set columns. This algorithm is useful for simple tables (without merged columns) and provides more accurate detection.
Allows to detect a table in any place on the page. This is a more complex algorithm. It can detect tables in any place on the page. Additional parameters help to detect a table more correctly.
In some cases when algorithms can’t detect a table or do it in non-accurate way TemplateTableLayout class is used.
The value that indicates whether the table has merged cells.
minRowCount
java.lang.Integer
The minimum number of the table rows.
minColumnCount
java.lang.Integer
The minumum number of the table columns.
minVerticalSpace
java.lang.Integer
The minumum space between the table columns.
getRectangle()
public Rectangle getRectangle()
Gets the rectangular area that contains the table.
Returns:Rectangle - An instance of Rectangle class that represents the rectangular area that contains the table; null if it isn’t set.
getVerticalSeparators()
public List<Double> getVerticalSeparators()
Gets the table columns separators.
Returns:
java.util.List<java.lang.Double> - A collection of double values that represent x-coordinates of the table columns separators; null if it isn’t set.
hasMergedCells()
public Boolean hasMergedCells()
Gets the value that indicates whether the table has merged cells.
Returns:
java.lang.Boolean - true if the table has merged cells; otherwise, false . null if it isn’t set.
getMinRowCount()
public Integer getMinRowCount()
Gets the minimum number of the table rows.
Returns:
java.lang.Integer - An integer value that represents the minimum number of the table rows; null if it isn’t set.
getMinColumnCount()
public Integer getMinColumnCount()
Gets the minimum number of the table columns.
Returns:
java.lang.Integer - An integer value that represents the minimum number of the table columns; null if it isn’t set.
getMinVerticalSpace()
public Integer getMinVerticalSpace()
Gets the minumum space between the table columns.
Returns:
java.lang.Integer - An integer value that represents the minumum space between the table columns; null if it isn’t set.
scale(double factor)
public TemplateTableParameters scale(double factor)
Creates a copy of these parameters with all coordinates scaled by the given factor.