RectangleObject 类

class pypdf.generic.RectangleObject(arr: RectangleObject | Tuple[float, float, float, float])[源代码]

基类:ArrayObject

This class is used to represent page boxes in pypdf.

These boxes include:

scale(sx: float, sy: float) RectangleObject[源代码]
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.

property upper_right: Tuple[float, float]

Property to read and modify the upper right coordinate of this box in (x,y) form.

property width: float
property height: float