pdftools_toolbox.pdf.annotations.text_markup
Classes
|
An annotation that marks up part(s) of a text |
- class pdftools_toolbox.pdf.annotations.text_markup.TextMarkup(handle)[source]
Bases:
MarkupAnnotation
An annotation that marks up part(s) of a text
- property paint: Paint
The paint the annotation and the popup
- Returns:
pdftools_toolbox.pdf.content.paint.Paint
- Raises:
StateError – if the object has already been closed
pdftools_toolbox.corrupt_error.CorruptError – if the PDF is corrupt and the annotation’s paint cannot be read
- property popup: Popup | None
The pop-up
- Returns:
Optional[pdftools_toolbox.pdf.annotations.popup.Popup]
- Raises:
StateError – if the object has already been closed
- property markup_area: QuadrilateralList
The markup area
This list of
pdftools_toolbox.geometry.real.quadrilateral.Quadrilateral
s defines the markup area on the page.- Returns:
pdftools_toolbox.geometry.real.quadrilateral_list.QuadrilateralList
- Raises:
StateError – if the object has already been closed
pdftools_toolbox.corrupt_error.CorruptError – if the PDF is corrupt