Poppler.Rectangle¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
x1 |
r/w |
x coordinate of lower left corner |
|
x2 |
r/w |
x coordinate of upper right corner |
|
y1 |
r/w |
y coordinate of lower left corner |
|
y2 |
r/w |
y coordinate of upper right corner |
Methods¶
class |
|
|
|
|
Details¶
- class Poppler.Rectangle¶
A
Poppler.Rectangle
is used to describe locations on a page and bounding boxes- classmethod new()¶
- Returns:
a new
Poppler.Rectangle
, usePoppler.Rectangle.free
() to free it- Return type:
Creates a new
Poppler.Rectangle
- copy()¶
- Returns:
a new allocated copy of self
- Return type:
Creates a copy of self.
Note that you must only use this function on an allocated
Poppler.Rectangle
, as returned byPoppler.Rectangle.new
(),Poppler.Rectangle.copy
(), or the list elements returned fromPoppler.Page.find_text
() orPoppler.Page.find_text_with_options
().
- find_get_ignored_hyphen()¶
- Returns:
whether a hyphen was ignored at the end of the line corresponding to self.
- Return type:
When using
Poppler.Page.find_text_with_options
() with thePoppler.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 self, this function returnsTrue
(and thenPoppler.Rectangle.find_get_match_continued
() will also returnTrue
); otherwise it returnsFalse
.Note that you must only call this function on a
Poppler.Rectangle
returned in the list fromPoppler.Page.find_text
() orPoppler.Page.find_text_with_options
().New in version 21.05.0.
- find_get_match_continued()¶
- Returns:
whether there are more rectangles belonging to the same match
- Return type:
When using
Poppler.Page.find_text_with_options
() with thePoppler.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 returnTrue
from this function, except for the last rectangle, where this function will returnFalse
.Note that you must only call this function on a
Poppler.Rectangle
returned in the list fromPoppler.Page.find_text
() orPoppler.Page.find_text_with_options
().New in version 21.05.0.
- free()¶
Frees the given
Poppler.Rectangle
.Note that you must only use this function on an allocated
Poppler.Rectangle
, as returned byPoppler.Rectangle.new
(),Poppler.Rectangle.copy
(), or the list elements returned fromPoppler.Page.find_text
() orPoppler.Page.find_text_with_options
().