Class: Poppler::AnnotFreeText

Inherits:
AnnotMarkup show all
Defined in:
(unknown)

Overview

An annotation for free text.

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 Free Text annotation that will be
located on rect when added to a page. See
poppler_page_add_annot(). It initially has no content. Font family, size and
color are initially undefined and must be set, see
poppler_annot_free_text_set_font_desc() and
poppler_annot_free_text_set_font_color().

Parameters:

Instance Method Details

#callout_line ⇒ Poppler::AnnotCalloutLine

Retrieves a Poppler::AnnotCalloutLine of four or six numbers specifying a callout
line attached to the poppler_annot.

Returns:

  • (Poppler::AnnotCalloutLine) —

    a new allocated Poppler::AnnotCalloutLine if the annot has a callout
    line, nil in other case. It must be freed with g_free() when
    done.

#font_color ⇒ Poppler::Color

Gets the font color.

Returns:

#font_color=(color) ⇒ nil

Sets the font color.

Parameters:

Returns:

  • (nil)

#font_desc ⇒ Poppler::FontDescription

Gets the font description (i.e. font family name, style, weight, stretch and size).
no font description set.

Returns:

  • (Poppler::FontDescription) —

    a copy of the annotation font description, or NULL if there is

#font_desc=(font_desc) ⇒ nil

Sets the font description (i.e. font family name, style, weight, stretch and size).

Parameters:

  • font_desc (Poppler::FontDescription) —

    a Poppler::FontDescription

Returns:

  • (nil)

#quadding ⇒ Poppler::AnnotFreeTextQuadding

Retrieves the justification of the text of poppler_annot.

Returns: