Class: Poppler::AnnotStamp

Inherits:
AnnotMarkup show all
Defined in:
(unknown)

Overview

An annotation for stamp.

Since 25.06 this type supports g_autoptr

Instance Method Summary collapse

Methods inherited from AnnotMarkup

#date, #external_data, #get_popup_rectangle, #has_popup, #label, #label=, #opacity, #opacity=, #popup=, #popup_is_open, #popup_is_open=, #popup_rectangle=, #reply_to, #subject

Methods inherited from Annot

#annot_type, #border_width=, #color, #color=, #contents, #contents=, #flags, #flags=, #get_border_width, #get_rectangle, #modified, #name, #page_index, #rectangle=

Constructor Details

#initialize(doc, rect) ⇒ Poppler::Annot

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

Parameters:

Instance Method Details

#custom_image=(image) ⇒ Boolean

Sets the custom image of poppler_annot to be image

Parameters:

  • image (cairo::Surface) —

    an image cairo surface

Returns:

  • (Boolean) —

    true on success, false otherwise.

#icon ⇒ Poppler::AnnotStampIcon

Returns the corresponding Poppler::AnnotStampIcon of the icon.

Returns:

#icon=(icon) ⇒ nil

Sets the icon of poppler_annot to be one of the predefined values in Poppler::AnnotStampIcon

Parameters:

Returns:

  • (nil)