GraphicElement

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

NameTypeAccessDescription
kindstrReadWhat put the mark on the page.
operationstr | NoneReadHow the mark was made: fill, stroke, fill_stroke or clip.
rectangleRectangleReadBounding box in page (user) space.
page_indexintReadZero-based index of the page this element was found on.
resource_namestr | NoneReadXObject resource name of a placed image, or None for a path.
fill_colortuple[float, float, float] | NoneReadFill colour as RGB in 0..1, or None.
stroke_colortuple[float, float, float] | NoneReadStroke colour as RGB in 0..1, or None; see :attr:fill_color.
line_widthfloat | NoneReadStroke width in page space, or None for a fill or an image.

Methods

SignatureDescription
__init__(element: AbsorbedElement)Calls init(element) on this GraphicElement instance.