Add a 'Text' (sticky note) annotation.
(self, point: point_like, text: str, icon: str ="Note")
| 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.""" |
| 10589 | old_rotation = annot_preprocess(self) |
| 10590 | try: |
| 10591 | annot = self._add_text_annot(point, text, icon=icon) |
| 10592 | finally: |
| 10593 | if old_rotation != 0: |
| 10594 | self.set_rotation(old_rotation) |
| 10595 | annot_postprocess(self, annot) |
| 10596 | return annot |
| 10597 | |
| 10598 | def add_underline_annot(self, quads=None, start=None, stop=None, clip=None) -> Annot: |
| 10599 | """Add a 'Underline' annotation.""" |