The RectangleObject Class

class PyPDF2.generic.RectangleObject(arr)[source]

Bases: PyPDF2.generic.ArrayObject

This class is used to represent page boxes in PyPDF2. These boxes include:

property bottom
ensureIsNumber(value)[source]
getHeight()[source]
getLowerLeft()[source]
getLowerLeft_x()[source]
getLowerLeft_y()[source]
getLowerRight()[source]
getLowerRight_x()[source]
getLowerRight_y()[source]
getUpperLeft()[source]
getUpperLeft_x()[source]
getUpperLeft_y()[source]
getUpperRight()[source]
getUpperRight_x()[source]
getUpperRight_y()[source]
getWidth()[source]
property height
property left
property lowerLeft
property lowerRight
property lower_left

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

property lower_right

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

property right
setLowerLeft(value)[source]
setLowerRight(value)[source]
setUpperLeft(value)[source]
setUpperRight(value)[source]
property top
property upperLeft
property upperRight
property upper_left

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

property upper_right

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

property width