The RectangleObject Class
- class pypdf.generic.RectangleObject(arr: Union[RectangleObject, Tuple[float, float, float, float]])[source]
Bases:
ArrayObject
This class is used to represent page boxes in pypdf.
These boxes include:
- scale(sx: float, sy: float) RectangleObject [source]
- property left: FloatObject
- property bottom: FloatObject
- property right: FloatObject
- property top: FloatObject
- property lower_left: Tuple[float, float]
Property to read and modify the lower left coordinate of this box in (x,y) form.
- property lower_right: Tuple[float, float]
Property to read and modify the lower right coordinate of this box in (x,y) form.
- property upper_left: Tuple[float, float]
Property to read and modify the upper left coordinate of this box in (x,y) form.