GraphicElement
Overview
GraphicElement is a class in Aspose.PDF FOSS for Python.
A painted path or a placed image, read from a page’s content stream.
This class declares 1 method for GraphicElement objects in Python programs.
Available methods include: __init__.
All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.
Properties: fill_color, kind, line_width, operation, page_index, rectangle, and 2 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
kind | str | Read | What put the mark on the page. |
operation | str | None | Read | How the mark was made: fill, stroke, fill_stroke or clip. |
rectangle | Rectangle | Read | Bounding box in page (user) space. |
page_index | int | Read | Zero-based index of the page this element was found on. |
resource_name | str | None | Read | XObject resource name of a placed image, or None for a path. |
fill_color | tuple[float, float, float] | None | Read | Fill colour as RGB in 0..1, or None. |
stroke_color | tuple[float, float, float] | None | Read | Stroke colour as RGB in 0..1, or None; see :attr:fill_color. |
line_width | float | None | Read | Stroke width in page space, or None for a fill or an image. |
Methods
| Signature | Description |
|---|---|
__init__(element: AbsorbedElement) | Calls init(element) on this GraphicElement instance. |