Poppler.AnnotStamp

g GObject.Object GObject.Object Poppler.Annot Poppler.Annot GObject.Object->Poppler.Annot Poppler.AnnotStamp Poppler.AnnotStamp Poppler.Annot->Poppler.AnnotStamp

Subclasses:

None

Methods

Inherited:

Poppler.Annot (12), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (doc, rect)

get_icon ()

set_custom_image (image)

set_icon (icon)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Poppler.AnnotStamp(**kwargs)
Bases:

Poppler.Annot

Abstract:

No

classmethod new(doc, rect)
Parameters:
Returns:

a newly created Poppler.AnnotStamp annotation

Return type:

Poppler.Annot

Creates a new Stamp annotation that will be located on rect when added to a page. See Poppler.Page.add_annot()

New in version 22.07.0.

get_icon()
Returns:

the corresponding Poppler.AnnotStampIcon of the icon

Return type:

Poppler.AnnotStampIcon

New in version 22.07.0.

set_custom_image(image)
Parameters:

image (cairo.Surface) – an image cairo surface

Raises:

GLib.Error

Returns:

True on success, False otherwise.

Return type:

bool

Sets the custom image of self to be image

New in version 22.07.0.

set_icon(icon)
Parameters:

icon (Poppler.AnnotStampIcon) – the Poppler.AnnotStampIcon type of the icon

Sets the icon of self to be one of the predefined values in Poppler.AnnotStampIcon

New in version 22.07.0.