The RectangleObject Class

class PyPDF2.generic.RectangleObject(arr)

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

lowerLeft

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

lowerRight

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

upperLeft

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

upperRight

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