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

Method add_circle_annot

src/__init__.py:10340–10349  ·  view source on GitHub ↗

Add a 'Circle' (ellipse, oval) annotation.

(self, rect: rect_like)

Source from the content-addressed store, hash-verified

10338 return annot
10339
10340 def add_circle_annot(self, rect: rect_like) -> Annot:
10341 """Add a 'Circle' (ellipse, oval) annotation."""
10342 old_rotation = annot_preprocess(self)
10343 try:
10344 annot = self._add_square_or_circle(rect, mupdf.PDF_ANNOT_CIRCLE)
10345 finally:
10346 if old_rotation != 0:
10347 self.set_rotation(old_rotation)
10348 annot_postprocess(self, annot)
10349 return annot
10350
10351 def add_file_annot(
10352 self,

Callers 3

test_circleFunction · 0.80
test_opacityFunction · 0.80
new-annots.pyFile · 0.80

Calls 4

_add_square_or_circleMethod · 0.95
set_rotationMethod · 0.95
annot_preprocessFunction · 0.85
annot_postprocessFunction · 0.85

Tested by 2

test_circleFunction · 0.64
test_opacityFunction · 0.64