pdftools_toolbox.pdf.content.stroke

Classes

Stroke(paint, line_width)

class pdftools_toolbox.pdf.content.stroke.Stroke(paint: Paint, line_width: float)[source]

Bases: _NativeObject

__init__(paint: Paint, line_width: float)[source]
Parameters:
Raises:

ValueError – if the document associated with the paint argument has already been closed

property paint: Paint
Returns:

pdftools_toolbox.pdf.content.paint.Paint

Raises:

StateError – if the document associated with the pdftools_toolbox.pdf.content.stroke.Stroke object has already been closed

property line_width: float
Returns:

float

Raises:

StateError – if the document associated with the pdftools_toolbox.pdf.content.stroke.Stroke object has already been closed

property line_cap_style: LineCapStyle
Returns:

pdftools_toolbox.pdf.content.line_cap_style.LineCapStyle

Raises:

StateError – if the document associated with the pdftools_toolbox.pdf.content.stroke.Stroke object has already been closed

property line_join_style: LineJoinStyle
Returns:

pdftools_toolbox.pdf.content.line_join_style.LineJoinStyle

Raises:

StateError – if the document associated with the pdftools_toolbox.pdf.content.stroke.Stroke object has already been closed

property dash_array: List[float]
Returns:

List[float]

Raises:

StateError – if the document associated with the pdftools_toolbox.pdf.content.stroke.Stroke object has already been closed

property dash_phase: float
Returns:

float

Raises:

StateError – if the document associated with the pdftools_toolbox.pdf.content.stroke.Stroke object has already been closed

property miter_limit: float
Returns:

float

Raises:

StateError – if the document associated with the pdftools_toolbox.pdf.content.stroke.Stroke object has already been closed