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

Method add_strikeout_annot

src/__init__.py:10579–10585  ·  view source on GitHub ↗

Add a 'StrikeOut' annotation.

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

Source from the content-addressed store, hash-verified

10577 return annot
10578
10579 def add_strikeout_annot(self, quads=None, start=None, stop=None, clip=None) -> Annot:
10580 """Add a 'StrikeOut' annotation."""
10581 if quads is None:
10582 q = get_highlight_selection(self, start=start, stop=stop, clip=clip)
10583 else:
10584 q = CheckMarkerArg(quads)
10585 return self._add_text_marker(q, mupdf.PDF_ANNOT_STRIKE_OUT)
10586
10587 def add_text_annot(self, point: point_like, text: str, icon: str ="Note") -> Annot:
10588 """Add a 'Text' (sticky note) annotation."""

Callers 2

test_strikeoutFunction · 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_strikeoutFunction · 0.64