Poppler.Annot¶
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Poppler.Annot(**kwargs)¶
- Bases:
- Abstract:
No
- get_annot_type()¶
- Returns:
Poppler.AnnotType
of self.- Return type:
Gets the type of self
- get_color()¶
- Returns:
a new allocated
Poppler.Color
with the color values of self, orNone
. It must be freed withGLib.free
() when done.- Return type:
Retrieves the color of self.
- get_contents()¶
- Returns:
a new allocated string with the contents of self. It must be freed with
GLib.free
() when done.- Return type:
Retrieves the contents of self.
- get_flags()¶
- Returns:
the flag field of self.
- Return type:
Retrieves the flag field specifying various characteristics of the self.
- get_modified()¶
- Returns:
a new allocated string with the last modification data of self. It must be freed with
GLib.free
() when done.- Return type:
Retrieves the last modification data of self. The returned string will be either a PDF format date or a text string. See also
Poppler.date_parse
()
- get_name()¶
- Returns:
a new allocated string with the name of self. It must be freed with
GLib.free
() when done.- Return type:
Retrieves the name of self.
- get_page_index()¶
- Returns:
page index or -1
- Return type:
Returns the page index to which self is associated, or -1 if unknown
New in version 0.14.
- get_rectangle()¶
- Returns:
a
Poppler.Rectangle
to store the annotation’s coordinates- Return type:
poppler_rect:
Poppler.Rectangle
Retrieves the rectangle representing the page coordinates where the annotation self is placed.
New in version 0.26.
- set_color(poppler_color)¶
- Parameters:
poppler_color (
Poppler.Color
orNone
) – aPoppler.Color
, orNone
Sets the color of self.
New in version 0.16.
- set_contents(contents)¶
- Parameters:
contents (
str
) – a text string containing the new contents
Sets the contents of self to the given value, replacing the current contents.
New in version 0.12.
- set_flags(flags)¶
- Parameters:
flags (
Poppler.AnnotFlag
) – aPoppler.AnnotFlag
Sets the flag field specifying various characteristics of the self.
New in version 0.22.
- set_rectangle(poppler_rect)¶
- Parameters:
poppler_rect (
Poppler.Rectangle
) – aPoppler.Rectangle
with the new annotation’s coordinates
Move the annotation to the rectangle representing the page coordinates where the annotation self should be placed.
New in version 0.26.