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

Method add_stamp_annot

src/__init__.py:10568–10577  ·  view source on GitHub ↗

Add a ('rubber') 'Stamp' annotation.

(self, rect: rect_like, stamp=0)

Source from the content-addressed store, hash-verified

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."""
10570 old_rotation = annot_preprocess(self)
10571 try:
10572 annot = self._add_stamp_annot(rect, stamp)
10573 finally:
10574 if old_rotation != 0:
10575 self.set_rotation(old_rotation)
10576 annot_postprocess(self, annot)
10577 return annot
10578
10579 def add_strikeout_annot(self, quads=None, start=None, stop=None, clip=None) -> Annot:
10580 """Add a 'StrikeOut' annotation."""

Callers 3

test_stampFunction · 0.80
test_image_stampFunction · 0.80
new-annots.pyFile · 0.80

Calls 4

_add_stamp_annotMethod · 0.95
set_rotationMethod · 0.95
annot_preprocessFunction · 0.85
annot_postprocessFunction · 0.85

Tested by 2

test_stampFunction · 0.64
test_image_stampFunction · 0.64