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_sdk import PdfPageConstruction
PdfPage cannot be instantiated directly. Obtain instances through static factory methods or via other SDK classes.
Methods
make_searchable
def make_searchable(self) -> NoneRuns OCR over this page and writes an invisible, searchable text layer on top of the rendered content.
Properties
annotation_collection
@propertydef annotation_collection(self) -> listThe collection of annotations on this page.
Type: list
Read-only property.
height
@propertydef height(self) -> floatThe height of the page in points.
Type: float
Read-only property.
page_number
@propertydef page_number(self) -> intThe 1-based page number of this page in the document.
Type: int
Read-only property.
rotation
@propertydef rotation(self) -> intThe rotation of the page in degrees (0, 90, 180, or 270).
Type: int
Read-only property.
width
@propertydef width(self) -> floatThe width of the page in points.
Type: float
Read-only property.