pdftools_toolbox.pdf.annotations.sticky_note

Classes

StickyNote(handle)

A sticky note annotation

class pdftools_toolbox.pdf.annotations.sticky_note.StickyNote(handle)[source]

Bases: MarkupAnnotation

A sticky note annotation

static create(target_document: Document, top_left: Point, content: str | None, paint: Paint) StickyNote[source]

Create a sticky note annotation.

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

Parameters:
Returns:

The newly created sticky note annotation

Return type:

pdftools_toolbox.pdf.annotations.sticky_note.StickyNote

Raises:
property paint: Paint

The paint for the icon and the popup

Returns:

pdftools_toolbox.pdf.content.paint.Paint

Raises:
property popup: Popup | None

The pop-up

Returns:

Optional[pdftools_toolbox.pdf.annotations.popup.Popup]

Raises:

StateError – if the object has already been closed