Class: Poppler::Annot

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

Direct Known Subclasses

AnnotMarkup, AnnotMovie, AnnotScreen, AnnotStamp

Instance Method Summary collapse

Instance Method Details

#annot_typePoppler::AnnotType

Gets the type of poppler_annot

Returns:

#colorPoppler::Color

Retrieves the color of poppler_annot.

Returns:

  • (Poppler::Color)

    a new allocated Poppler::Color with the color values of poppler_annot, or nil. It must be freed with g_free() when done.

#color=(poppler_color) ⇒ nil

Sets the color of poppler_annot.

Parameters:

Returns:

  • (nil)

#contentsString

Retrieves the contents of poppler_annot.

Returns:

  • (String)

    a new allocated string with the contents of poppler_annot. It must be freed with g_free() when done.

#contents=(contents) ⇒ nil

Sets the contents of poppler_annot to the given value, replacing the current contents.

Parameters:

  • contents (String)

    a text string containing the new contents

Returns:

  • (nil)

#flagsPoppler::AnnotFlag

Retrieves the flag field specifying various characteristics of the poppler_annot.

Returns:

#flags=(flags) ⇒ nil

Sets the flag field specifying various characteristics of the poppler_annot.

Parameters:

Returns:

  • (nil)

#get_rectangle(poppler_rect) ⇒ nil

Retrieves the rectangle representing the page coordinates where the annotation poppler_annot is placed.

Parameters:

  • poppler_rect (Poppler::Rectangle)

    a Poppler::Rectangle to store the annotation's coordinates

Returns:

  • (nil)

#modifiedString

Retrieves the last modification data of poppler_annot. The returned string will be either a PDF format date or a text string. See also #poppler_date_parse()

Returns:

  • (String)

    a new allocated string with the last modification data of poppler_annot. It must be freed with g_free() when done.

#nameString

Retrieves the name of poppler_annot.

Returns:

  • (String)

    a new allocated string with the name of poppler_annot. It must be freed with g_free() when done.

#page_indexInteger

Returns the page index to which poppler_annot is associated, or -1 if unknown

Returns:

  • (Integer)

    page index or -1

#rectangle=(poppler_rect) ⇒ nil

Move the annotation to the rectangle representing the page coordinates where the annotation poppler_annot should be placed.

Parameters:

  • poppler_rect (Poppler::Rectangle)

    a Poppler::Rectangle with the new annotation's coordinates

Returns:

  • (nil)