Add a 'Circle' (ellipse, oval) annotation.
(self, rect: rect_like)
| 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, |