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

Method add_squiggly_annot

src/__init__.py:10554–10566  ·  view source on GitHub ↗

Add a 'Squiggly' annotation.

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

Source from the content-addressed store, hash-verified

10552 return annot
10553
10554 def add_squiggly_annot(
10555 self,
10556 quads=None,
10557 start=None,
10558 stop=None,
10559 clip=None,
10560 ) -> Annot:
10561 """Add a 'Squiggly' annotation."""
10562 if quads is None:
10563 q = get_highlight_selection(self, start=start, stop=stop, clip=clip)
10564 else:
10565 q = CheckMarkerArg(quads)
10566 return self._add_text_marker(q, mupdf.PDF_ANNOT_SQUIGGLY)
10567
10568 def add_stamp_annot(self, rect: rect_like, stamp=0) -> Annot:
10569 """Add a ('rubber') 'Stamp' annotation."""

Callers 2

test_squigglyFunction · 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_squigglyFunction · 0.64