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
| Signature | Description |
|---|---|
rotate(degrees: int, page_numbers: Any, relative: bool) → bool | Turn the pages named by degrees, added to what each already says. |
resize(page_size: Any, page_numbers: Any, scale_content: bool, mode: str) → bool | Give the pages named a new size, keeping each box’s origin. |
crop(rect: Any, page_numbers: Any) → bool | Set the crop box of the pages named to (x0, y0, x1, y1). |
move_page(page_number: int, new_position: int) → bool | Move a page to new_position (1-based), shifting the rest along. |
delete_pages(page_numbers: Any) → bool | Delete the pages named. |