pdftools_toolbox.pdf.content.subpath
Classes
|
A disconnected subpath. |
- class pdftools_toolbox.pdf.content.subpath.Subpath(handle)[source]
Bases:
_NativeObject
,list
A disconnected subpath.
A container for connected path segments.
- property start_point: Point
The start point of the
pdftools_toolbox.pdf.content.subpath.Subpath
.- Returns:
pdftools_toolbox.geometry.real.point.Point
- property is_closed: bool
If True, the
pdftools_toolbox.pdf.content.subpath.Subpath
represents a closed curve.- Returns:
bool
- remove(index: int) None [source]
Remove first occurrence of value.
Raises ValueError if the value is not present.
- pop(index: int = -1) Any [source]
Remove and return item at index (default last).
Raises IndexError if list is empty or index is out of range.
- sort(key=None, reverse=False) None [source]
Sort the list in ascending order and return None.
The sort is in-place (i.e. the list itself is modified) and stable (i.e. the order of two equal elements is maintained).
If a key function is given, apply it once to each list item and sort them, ascending or descending, according to their function values.
The reverse flag can be set to sort in descending order.
- append(value: PathSegment) None [source]
Append object to the end of the list.
- index(value: PathSegment, start: int = 0, stop: int | None = None) int [source]
Return first index of value.
Raises ValueError if the value is not present.