DocumentTable Class

A table object consisting of table cells arranged in a rectangular layout.

Inheritance
builtins.object
DocumentTable

Constructor

DocumentTable(**kwargs: Any)

Methods

from_dict

Converts a dict in the shape of a DocumentTable to the model itself.

to_dict

Returns a dict representation of DocumentTable.

from_dict

Converts a dict in the shape of a DocumentTable to the model itself.

from_dict(data: Dict) -> DocumentTable

Parameters

Name Description
data
Required

A dictionary in the shape of DocumentTable.

Returns

Type Description

DocumentTable

to_dict

Returns a dict representation of DocumentTable.

to_dict() -> Dict

Returns

Type Description

dict

Attributes

bounding_regions

Bounding regions covering the table.

bounding_regions: List[BoundingRegion] | None

cells

Cells contained within the table.

cells: List[DocumentTableCell]

column_count

Number of columns in the table.

column_count: int

row_count

Number of rows in the table.

row_count: int

spans

Location of the table in the reading order concatenated content.

spans: List[DocumentSpan]