pdftools_toolbox.pdf.annotations.underline

Classes

Underline(handle)

An text underlining annotation

class pdftools_toolbox.pdf.annotations.underline.Underline(handle)[source]

Bases: TextMarkup

An text underlining annotation

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

Create a new underline with defined area

The area to be underlined 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.underline.Underline

Raises: