Poppler.AnnotText¶
- Subclasses:
None
Methods¶
- Inherited:
Poppler.AnnotMarkup (14), Poppler.Annot (12), GObject.Object (37)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Poppler.AnnotText(**kwargs)¶
- Bases:
- Abstract:
No
- classmethod new(doc, rect)¶
- Parameters:
doc (
Poppler.Document
) – aPoppler.Document
rect (
Poppler.Rectangle
) – aPoppler.Rectangle
- Returns:
A newly created
Poppler.AnnotText
annotation- Return type:
Creates a new Text annotation that will be located on rect when added to a page. See
Poppler.Page.add_annot
()New in version 0.16.
- get_icon()¶
- Returns:
a new allocated string containing the icon name
- Return type:
Gets name of the icon of self.
- get_is_open()¶
-
Retrieves the state of self.
- get_state()¶
- Returns:
Poppler.AnnotTextState
of self.- Return type:
Retrieves the state of self.
- set_icon(icon)¶
- Parameters:
icon (
str
) – the name of an icon
Sets the icon of self. The following predefined icons are currently supported:
Poppler.ANNOT_TEXT_ICON_COMMENT
Poppler.ANNOT_TEXT_ICON_NEW_PARAGRAPH
Poppler.ANNOT_TEXT_ICON_PARAGRAPH
Poppler.ANNOT_TEXT_ICON_INSERT
Poppler.ANNOT_TEXT_ICON_CIRCLE
New in version 0.16.