Class: Poppler::AnnotMarkup

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=

Instance Method Details

#dateGLib::Date

Returns the date and time when the annotation was created

Returns:

  • (GLib::Date)

    a #GDate representing the date and time when the annotation was created, or nil

#external_dataPoppler::AnnotExternalDataType

Gets the external data type of poppler_annot.

Returns:

#get_popup_rectangle(poppler_rect) ⇒ Boolean

Retrieves the rectangle of the popup window related to poppler_annot.

Parameters:

Returns:

  • (Boolean)

    true if Poppler::Rectangle was correctly filled, false otherwise

#has_popupBoolean

Return true if the markup annotation has a popup window associated

Returns:

  • (Boolean)

    true, if poppler_annot has popup, false otherwise

#labelString

Retrieves the label text of poppler_annot.

Returns:

  • (String)

    the label text of poppler_annot.

#label=(label) ⇒ nil

Sets the label text of poppler_annot, replacing the current one

Parameters:

  • label (String)

    a text string containing the new label, or nil

Returns:

  • (nil)

#opacityFloat

Retrieves the opacity value of poppler_annot.

Returns:

  • (Float)

    the opacity value of poppler_annot, between 0 (transparent) and 1 (opaque)

#opacity=(opacity) ⇒ nil

Sets the opacity of poppler_annot. This value applies to all visible elements of poppler_annot in its closed state, but not to the pop-up window that appears when it's openened

Parameters:

  • opacity (Float)

    a constant opacity value, between 0 (transparent) and 1 (opaque)

Returns:

  • (nil)

#popup=(popup_rect) ⇒ nil

Associates a new popup window for editing contents of poppler_annot. Popup window shall be displayed by viewers at popup_rect on the page.

Parameters:

Returns:

  • (nil)

Retrieves the state of the popup window related to poppler_annot.

Returns:

  • (Boolean)

    the state of poppler_annot. true if it's open, false in other case.

Sets the state of the popup window related to poppler_annot.

Parameters:

  • is_open (Boolean)

    whether popup window should initially be displayed open

Returns:

  • (nil)

Sets the rectangle of the popup window related to poppler_annot. This doesn't have any effect if poppler_annot doesn't have a popup associated, use poppler_annot_markup_set_popup() to associate a popup window to a Poppler::AnnotMarkup.

Parameters:

Returns:

  • (nil)

#reply_toPoppler::AnnotMarkupReplyType

Gets the reply type of poppler_annot.

Returns:

#subjectString

Retrives the subject text of poppler_annot.

Returns:

  • (String)

    the subject text of poppler_annot.