Rectangle

Overview

Rectangle is a class in Aspose.PDF FOSS for Python.

Represents a rectangle with position and size.

This class provides 1 method for working with Rectangle objects in Python programs. Available methods include: __init__. All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package. Properties: bottom, height, left, right, width, x, and 1 more.

Properties

NameTypeAccessDescription
xfloatReadGet X-coordinate of the lower-left corner.
yfloatReadGet Y-coordinate of the lower-left corner.
widthfloatReadGet width.
heightfloatReadGet height.
leftfloatReadGet the left edge.
bottomfloatReadGet the bottom edge.
rightfloatReadGet the right edge.

Methods

SignatureDescription
__init__(x: float, y: float, width: float, height: float)Initialize a rectangle.

See Also