PageCollection
PageCollection
概述
PageCollection 是 Aspose.PDF FOSS 中用于 Python 的类。
用于 SimplePdf 中页面的集合包装器。
此类提供 5 个方法,用于在 Python 程序中处理 PageCollection 对象。可用的方法包括:__init__、contains、get_enumerator、index_of、item。在安装了 Aspose.PDF FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。属性:count、is_read_only、page_contents、pages。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
count | int | 读取 | 获取计数。 |
is_read_only | bool | 读取 | 获取 IsReadOnly。 |
pages | list[tuple[float, float, float, float]] | 读取 | 获取页面。 |
page_contents | list[bytes] | 读取 | 获取页面内容。 |
方法
| 签名 | 描述 |
|---|---|
| `init(pdf: SimplePdf | None)` |
contains(page: Any) → bool | 在此 PageCollection 实例上调用 contains(page)。 |
index_of(page: Any) → int | 在此 PageCollection 实例上调用 index_of(page)。 |
item(index: int) → Any | 在此 PageCollection 实例上调用 item(index)。 |
get_enumerator() | 返回枚举器。 |