LayerCollection
LayerCollection
概述
LayerCollection 是 Aspose.PDF FOSS 中用于 Python 的一个类。
文档的层,可按位置或按名称索引。
此类为 Python 程序中的 LayerCollection 对象声明了 4 个方法。可用的方法包括:__init__、add、names、remove。在安装了 Aspose.PDF FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。
方法
| 签名 | 描述 |
|---|---|
__init__(state: Any) | Calls init(state) 在此 LayerCollection 实例上。 |
add(name: str, visible: bool, intent: Sequence[str]) → Layer | 创建一个图层并返回它。 |
| `remove(layer: Layer | str)→bool` |
names() → list[str] | 图层名称按文档顺序排列。 |