Class (GI Struct)

Poppler-0.18PopplerRectangle

A Poppler.Rectangle is used to describe locations on a page and bounding boxes

Since 24.10 this type supports g_autoptr

Index

Constructors

Properties

x1: number
x2: number
y1: number
y2: number

Methods

  • Creates a copy of rectangle.

    Note that you must only use this function on an allocated PopplerRectangle, as returned by poppler_rectangle_new(), poppler_rectangle_copy(), or the list elements returned from poppler_page_find_text() or poppler_page_find_text_with_options().

    Returns Poppler.Rectangle

    a new allocated copy of rectangle

  • When using poppler_page_find_text_with_options() with the Poppler.FindFlags.MULTILINE flag, a match may span more than one line, and may have been formed by ignoring a hyphen at the end of the line. When this happens at the end of the line corresponding to rectangle, this function returns true (and then poppler_rectangle_find_get_match_continued() will also return true); otherwise it returns false.

    Note that you must only call this function on a Poppler.Rectangle returned in the list from poppler_page_find_text() or poppler_page_find_text_with_options().

    Returns boolean

    whether a hyphen was ignored at the end of the line corresponding to rectangle.

  • When using poppler_page_find_text_with_options() with the Poppler.FindFlags.MULTILINE flag, a match may span more than one line and thus consist of more than one rectangle. Every rectangle belonging to the same match will return true from this function, except for the last rectangle, where this function will return false.

    Note that you must only call this function on a Poppler.Rectangle returned in the list from poppler_page_find_text() or poppler_page_find_text_with_options().

    Returns boolean

    whether there are more rectangles belonging to the same match

  • Frees the given Poppler.Rectangle.

    Note that you must only use this function on an allocated PopplerRectangle, as returned by poppler_rectangle_new(), poppler_rectangle_copy(), or the list elements returned from poppler_page_find_text() or poppler_page_find_text_with_options().

    Returns void