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。

属性

名称类型访问描述
countint读取获取计数。
is_read_onlybool读取获取 IsReadOnly。
pageslist[tuple[float, float, float, float]]读取获取页面。
page_contentslist[bytes]读取获取页面内容。

方法

签名描述
`init(pdf: SimplePdfNone)`
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()返回枚举器。

另请参阅

 中文