pycognaize.document.tag.cell.Cell

class Cell(value, left_col, top_row, top, right, bottom, left, col_span, row_span)[source]

Bases: object

Represents a single element in TableTag

Methods

to_dict

Converts cell to dict

Attributes

area

Area of the rectangle

bottom

col_span

height

Height of the rectangle

left

left_col

right

row_span

top

top_row

value

width

Width of the rectangle

property area: float

Area of the rectangle

property height: int | float

Height of the rectangle

to_dict()[source]

Converts cell to dict

Return type:

dict

property width: int | float

Width of the rectangle