hotpdf.data.classes.HotCharacter

class hotpdf.data.classes.HotCharacter(value: str, x: int, y: int, x_end: int, span_id: UUID, is_anno: bool | None = False)

A hot character is a character on a page with certain attributes.

value

value value of the character.

Type:

str

x

x position of the character - column number.

Type:

int

y

y position of the character - row number.

Type:

int

x_end

end x position of the character. x_end - x = width of character.

Type:

int

span_id

hash of parent span the character lies in.

Type:

UUID

is_anno

specify if a character is an annotation (default: False).

Type:

bool, Optional

__init__(value: str, x: int, y: int, x_end: int, span_id: UUID, is_anno: bool | None = False) None

Methods

__init__(value, x, y, x_end, span_id[, is_anno])

Attributes

is_anno

value

x

y

x_end

span_id