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:

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 lowerLeft

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

property lowerRight

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

setLowerLeft(value)[source]
setLowerRight(value)[source]
setUpperLeft(value)[source]
setUpperRight(value)[source]
property upperLeft

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

property upperRight

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