PageCollection

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

NameTypeAccessDescription
countintReadGets the count.
is_read_onlyboolReadGets the is read only.
pageslist[tuple[float, float, float, float]]ReadGets the pages.
page_contentslist[bytes]ReadGets the page contents.

Methods

SignatureDescription
__init__(pdf: SimplePdf | None)Calls init(pdf) on this PageCollection instance.
contains(page: Any)boolCalls contains(page) on this PageCollection instance.
index_of(page: Any)intCalls index_of(page) on this PageCollection instance.
item(index: int)AnyCalls item(index) on this PageCollection instance.
get_enumerator()Returns the enumerator.

See Also