MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / add_underline_annot

Method add_underline_annot

src/__init__.py:10598–10604  ·  view source on GitHub ↗

Add a 'Underline' annotation.

(self, quads=None, start=None, stop=None, clip=None)

Source from the content-addressed store, hash-verified

10596 return annot
10597
10598 def add_underline_annot(self, quads=None, start=None, stop=None, clip=None) -> Annot:
10599 """Add a 'Underline' annotation."""
10600 if quads is None:
10601 q = get_highlight_selection(self, start=start, stop=stop, clip=clip)
10602 else:
10603 q = CheckMarkerArg(quads)
10604 return self._add_text_marker(q, mupdf.PDF_ANNOT_UNDERLINE)
10605
10606 def add_widget(self, widget: Widget) -> Annot:
10607 """Add a 'Widget' (form field)."""

Callers 2

test_underlineFunction · 0.80
new-annots.pyFile · 0.80

Calls 3

_add_text_markerMethod · 0.95
get_highlight_selectionFunction · 0.85
CheckMarkerArgFunction · 0.85

Tested by 1

test_underlineFunction · 0.64