pdftools_toolbox.pdf.annotations.poly_line_annotation

Classes

PolyLineAnnotation(handle)

A drawing annotation that consists of several line segments

class pdftools_toolbox.pdf.annotations.poly_line_annotation.PolyLineAnnotation(handle)[source]

Bases: DrawingAnnotation

A drawing annotation that consists of several line segments

static create(target_document: Document, path: Path, stroke: Stroke) PolyLineAnnotation[source]

Create a poly-line annotation.

The returned poly-line annotation is not yet part of any page. It can be added to a page’s list of annotations.

Parameters:
Returns:

The newly created poly-line annotation.

Return type:

pdftools_toolbox.pdf.annotations.poly_line_annotation.PolyLineAnnotation

Raises:
property start_style: LineEnding

The starting point’s style

Returns:

pdftools_toolbox.pdf.annotations.line_ending.LineEnding

Raises:

StateError – if the object has already been closed

property end_style: LineEnding

The ending point’s style

Returns:

pdftools_toolbox.pdf.annotations.line_ending.LineEnding

Raises:

StateError – if the object has already been closed

property line_ending_fill: Paint

The line ending filling paint for both start and end

Returns:

pdftools_toolbox.pdf.content.paint.Paint

Raises:

StateError – if the object has already been closed