pdftools_toolbox.pdf.content.path_element
Classes
|
- class pdftools_toolbox.pdf.content.path_element.PathElement(handle)[source]
Bases:
ContentElement
- property alignment_box: Rectangle
the box for alignment
This is a rectangle that may not encompass all parts of an element, but is usefull for alignment.
- Returns:
pdftools_toolbox.geometry.real.rectangle.Rectangle
- Raises:
StateError – the object has already been closed
- property path: Path
This path element’s path object.
- Returns:
pdftools_toolbox.pdf.content.path.Path
- Raises:
StateError – the object has already been closed
- property stroke: Stroke | None
This path element’s parameters for stroking the path or None if the path is not stroked.
- Returns:
Optional[pdftools_toolbox.pdf.content.stroke.Stroke]
- Raises:
StateError – the object has already been closed
- property fill: Fill | None
This path element’s parameters for filling the path or None if the path is not filled.
- Returns:
Optional[pdftools_toolbox.pdf.content.fill.Fill]
- Raises:
StateError – the object has already been closed