hotpdf.data.classes.ElementDimension

class hotpdf.data.classes.ElementDimension(x0: int, y0: int, x1: int, y1: int, span_id: UUID | None = None)

ElementDimension is the dimension of an element in hotpdf.

x0

starting x position of the element (column).

Type:

int

y0

starting y position of the element (row).

Type:

int

x1

end x position of the element (column). x1 - x0 = width.

Type:

int

y1

end y position of the element (row) y1 - y0 = height.

Type:

int

span_id

hash of parent span the element lies in.

Type:

UUID, Optional

__init__(x0: int, y0: int, x1: int, y1: int, span_id: UUID | None = None) None

Methods

__init__(x0, y0, x1, y1[, span_id])

Attributes

span_id

x0

y0

x1

y1