pdftools_toolbox.pdf.annotations.ink_annotation

Classes

InkAnnotation(handle)

A free-hand drawing annotation

class pdftools_toolbox.pdf.annotations.ink_annotation.InkAnnotation(handle)[source]

Bases: DrawingAnnotation

A free-hand drawing annotation

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

Create a ink annotation.

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

Parameters:
Returns:

The newly created ink annotation.

Return type:

pdftools_toolbox.pdf.annotations.ink_annotation.InkAnnotation

Raises: