pdftools_toolbox.pdf.annotations.highlight

Classes

Highlight(handle)

An text highlighting annotation

class pdftools_toolbox.pdf.annotations.highlight.Highlight(handle)[source]

Bases: TextMarkup

An text highlighting annotation

static create_from_quadrilaterals(target_document: Document, markup_area: QuadrilateralList, paint: Paint) Highlight[source]

Create a new highlight with defined area

The highlight area is defined by the given markupArea. The returned object is associated with the targetDocument but not yet part of any page. It can be added to a page’s list of annotations.

Parameters:
Returns:

The newly created object

Return type:

pdftools_toolbox.pdf.annotations.highlight.Highlight

Raises: