Class: Poppler::AnnotStamp

Inherits:
Annot
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from Annot

#annot_type, #color, #color=, #contents, #contents=, #flags, #flags=, #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.

#iconPoppler::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)