FormTable Class

Information about the extracted table contained on a page.

New in version v2.1: The bounding_box property, support for to_dict and from_dict methods

Inheritance
builtins.object
FormTable

Constructor

FormTable(**kwargs: Any)

Methods

from_dict

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

to_dict

Returns a dict representation of FormTable.

from_dict

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

from_dict(data: Dict) -> FormTable

Parameters

Name Description
data
Required

A dictionary in the shape of FormTable.

Returns

Type Description

FormTable

to_dict

Returns a dict representation of FormTable.

to_dict() -> Dict

Returns

Type Description

dict

Attributes

bounding_box

A list of 4 points representing the quadrilateral bounding box that outlines the table. The points are listed in clockwise order: top-left, top-right, bottom-right, bottom-left. Units are in pixels for images and inches for PDF.

bounding_box: List[Point]

cells

List of cells contained in the table.

cells: List[FormTableCell]

column_count

Number of columns in table.

column_count: int

page_number

The 1-based number of the page in which this table is present.

page_number: int

row_count

Number of rows in table.

row_count: int