GraphicElement
GraphicElement
概述
GraphicElement 是 Aspose.PDF FOSS 中用于 Python 的类。
从页面内容流中读取的已绘制路径或已放置图像。
此类为 Python 程序中的 GraphicElement 对象声明了 1 个方法。可用的方法包括:__init__。在安装了 Aspose.PDF FOSS for Python 包之后,所有公共成员对任何 Python 应用程序均可访问。属性:fill_color、kind、line_width、operation、page_index、rectangle,以及另外 2 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
kind | str | 读取 | 是什么把标记放在页面上的。 |
operation | `str | None` | 读取 |
rectangle | Rectangle | 读取 | 页面(用户)空间中的边界框。 |
page_index | int | 读取 | 此元素所在页面的零基索引。 |
resource_name | `str | None` | 读取 |
fill_color | `tuple[float, float, float] | None` | 读取 |
stroke_color | `tuple[float, float, float] | None` | 读取 |
line_width | `float | None` | 读取 |
方法
| 签名 | 描述 |
|---|---|
__init__(element: AbsorbedElement) | Calls init(element) 在此 GraphicElement 实例上。 |