Poppler.AnnotInk¶
- Subclasses:
None
Methods¶
- Inherited:
Poppler.AnnotMarkup (14), Poppler.Annot (14), GObject.Object (37)
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Poppler.AnnotInk(**kwargs)¶
- Bases:
- Abstract:
No
New in version 25.06.0.
- classmethod new(doc, rect)¶
- Parameters:
doc (
Poppler.Document) – aPoppler.Documentrect (
Poppler.Rectangle) – aPoppler.Rectangle
- Returns:
A newly created
Poppler.AnnotInkannotation- Return type:
Creates a new ink annotation that will be located on rect when added to a page. See
Poppler.Page.add_annot()New in version 25.06.0.
- get_draw_below()¶
- Return type:
Returns whether the annotation is drawn below the page content or not.
New in version 25.10.0.
- get_ink_list()¶
- Returns:
a
GLib.SListofPoppler.Path- Return type:
Each element of the return value is a path.
New in version 25.06.0.
- set_draw_below(draw_below)¶
- Parameters:
draw_below (
bool) – whether the annotation should be drawn below the document content
This is typically used for highlight annotations. Technically, this implies that the annotation is drawn using a multiply blend mode.
New in version 25.10.0.
- set_ink_list(ink_list)¶
- Parameters:
ink_list ([
Poppler.Path]) – a list ofPoppler.Path
Each element of ink_list is a path. The annotation must have already been added to a page, otherwise the annotation may be wrongly positioned if the page is rotated or has a cropbox.
This function computes and set the appropriate smallest rectangle area that contains all the points of ink_list. Setting the rectangle afterwards with
Poppler.Annot.set_rectangleshould not be done to preserve scaling and positioning.New in version 25.06.0.