Represents a page in a PDF document with size, positioning, and annotation capabilities. This class provides functionality to manage page dimensions, boxes, rotation, and annotations.

from nutrient import PdfPage

Properties

annotation_collection

@property
def annotation_collection(self) -> list

Gets the collection of annotations on this page.

Type: list

Read-only property.


height

@property
def height(self) -> float

Gets the height of the page in points.

Type: float

Read-only property.


page_number

@property
def page_number(self) -> int

Gets the 1-based page number of this page in the document.

Type: int

Read-only property.


rotation

@property
def rotation(self) -> int

Gets the rotation of the page in degrees (0, 90, 180, or 270).

Type: int

Read-only property.


width

@property
def width(self) -> float

Gets the width of the page in points.

Type: float

Read-only property.