Common¶
-
class
py_pdf_parser.common.
BoundingBox
(x0: float, x1: float, y0: float, y1: float)¶ A rectangle, stored using the coordinates (x0, y0) of the bottom left corner, and the coordinates (x1, y1) of the top right corner.
Parameters: - x0 (int) – The x coordinate of the bottom left corner.
- x1 (int) – The x coordinate of the top right corner.
- y0 (int) – The y coordinate of the bottom left corner.
- y1 (int) – The y coordinate of the top right corner.
Raises: InvalidCoordinatesError
– if x1 is smaller than x0 or y1 is smaller than y0.-
x0
¶ The x coordinate of the bottom left corner.
Type: int
-
x1
¶ The x coordinate of the top right corner.
Type: int
-
y0
¶ The y coordinate of the bottom left corner.
Type: int
-
y1
¶ The y coordinate of the top right corner.
Type: int
-
width
¶ The width of the box, equal to x1 - x0.
Type: int
-
height
¶ The height of the box, equal to y1 - y0.
Type: int