PageCollection
Overview
PageCollection is a class in Aspose.PDF FOSS for Python.
Collection wrapper for pages in SimplePdf.
This class provides 5 methods for working with PageCollection objects in Python programs.
Available methods include: __init__, contains, get_enumerator, index_of, item.
All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.
Properties: count, is_read_only, page_contents, pages.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | Gets the count. |
is_read_only | bool | Read | Gets the is read only. |
pages | list[tuple[float, float, float, float]] | Read | Gets the pages. |
page_contents | list[bytes] | Read | Gets the page contents. |
Methods
| Signature | Description |
|---|---|
__init__(pdf: SimplePdf | None) | Calls init(pdf) on this PageCollection instance. |
contains(page: Any) → bool | Calls contains(page) on this PageCollection instance. |
index_of(page: Any) → int | Calls index_of(page) on this PageCollection instance. |
item(index: int) → Any | Calls item(index) on this PageCollection instance. |
get_enumerator() | Returns the enumerator. |