PdfPageEditor

Overview

PdfPageEditor is a class in Aspose.PDF FOSS for Python. Inherits from: _BoundFacade.

Turning, resizing, moving and removing pages.

This class declares 5 methods for PdfPageEditor objects in Python programs. Available methods include: crop, delete_pages, move_page, resize, rotate. Public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.

Methods

SignatureDescription
rotate(degrees: int, page_numbers: Any, relative: bool) → boolTurn the pages named by degrees, added to what each already says.
resize(page_size: Any, page_numbers: Any, scale_content: bool, mode: str) → boolGive the pages named a new size, keeping each box’s origin.
crop(rect: Any, page_numbers: Any) → boolSet the crop box of the pages named to (x0, y0, x1, y1).
move_page(page_number: int, new_position: int) → boolMove a page to new_position (1-based), shifting the rest along.
delete_pages(page_numbers: Any) → boolDelete the pages named.

See Also