[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Page.GetTable

GetTable Method

GetTable(RectangleF, ViewState, TableExtractOptions, float, float, bool)

Tries to recognize a table within specified bounds, if the table is found returns an object that allows accessing the table's rows, columns and cells.

Declaration
public ITable GetTable(RectangleF bounds, ViewState viewState, TableExtractOptions options = null, float dpiX = 72, float dpiY = 72, bool ignoreErrors = true)
Public Function GetTable(bounds As RectangleF, viewState As ViewState, Optional options As TableExtractOptions = Nothing, Optional dpiX As Single = 72, Optional dpiY As Single = 72, Optional ignoreErrors As Boolean = True) As ITable
Parameters
Type Name Description
RectangleF bounds

The bounds within which to look for a table.

ViewState viewState

The ViewState object.

TableExtractOptions options

The table extraction options.

float dpiX

The horizontal resolution. This determines the unit of measurement used by horizontal values in options.

float dpiY

The vertical resolution. This determines the unit of measurement used by vertical values in options.

bool ignoreErrors

Indicates whether to ignore errors in PDF content streams.

Returns
Type Description
ITable

The ITable object containing information about the table, or null if no table could be found within the specified bounds.

GetTable(RectangleF, TableExtractOptions, float, float, bool)

Tries to recognize a table within specified bounds, if the table is found returns an object that allows accessing the table's rows, columns and cells.

Declaration
public ITable GetTable(RectangleF bounds, TableExtractOptions options = null, float dpiX = 72, float dpiY = 72, bool ignoreErrors = true)
Public Function GetTable(bounds As RectangleF, Optional options As TableExtractOptions = Nothing, Optional dpiX As Single = 72, Optional dpiY As Single = 72, Optional ignoreErrors As Boolean = True) As ITable
Parameters
Type Name Description
RectangleF bounds

The bounds within which to look for a table.

TableExtractOptions options

The table extraction options.

float dpiX

The horizontal resolution. This determines the unit of measurement used by horizontal values in options.

float dpiY

The vertical resolution. This determines the unit of measurement used by vertical values in options.

bool ignoreErrors

Indicates whether to ignore errors in PDF content streams.

Returns
Type Description
ITable

The ITable object containing information about the table, or null if no table could be found within the specified bounds.