pdftools_toolbox.pdf.annotations.ellipse_annotation

Classes

EllipseAnnotation(handle)

An ellipse drawing annotation

class pdftools_toolbox.pdf.annotations.ellipse_annotation.EllipseAnnotation(handle)[source]

Bases: DrawingAnnotation

An ellipse drawing annotation

static create(target_document: Document, bounding_box: Rectangle, stroke: Stroke | None, fill: Paint | None) EllipseAnnotation[source]

Create an ellipse annotation.

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

Parameters:
Returns:

The newly created ellipse annotation.

Return type:

pdftools_toolbox.pdf.annotations.ellipse_annotation.EllipseAnnotation

Raises:
property fill: Paint

The filling paint

Returns:

pdftools_toolbox.pdf.content.paint.Paint

Raises:

StateError – if the object has already been closed