Class: Poppler::AnnotLine

Inherits:
AnnotMarkup show all
Defined in:
(unknown)

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, #color, #color=, #contents, #contents=, #flags, #flags=, #get_rectangle, #modified, #name, #page_index, #rectangle=

Constructor Details

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

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

Parameters:

  • doc (Poppler::Document)

    a Poppler::Document

  • rect (Poppler::Rectangle)

    a Poppler::Rectangle

  • start (Poppler::Point)

    a Poppler::Point of the starting vertice

  • end (Poppler::Point)

    a Poppler::Point of the ending vertice

Instance Method Details

#set_vertices(start, end) ⇒ nil

Set the coordinate points where the poppler_annot starts and ends.

Parameters:

  • start (Poppler::Point)

    a Poppler::Point of the starting vertice

  • end (Poppler::Point)

    a Poppler::Point of the ending vertice

Returns:

  • (nil)