Add a 'Ink' ('handwriting') annotation. The argument must be a list of lists of point_likes.
(self, handwriting: list)
| 10432 | return ret |
| 10433 | |
| 10434 | def add_ink_annot(self, handwriting: list) -> Annot: |
| 10435 | """Add a 'Ink' ('handwriting') annotation. |
| 10436 | |
| 10437 | The argument must be a list of lists of point_likes. |
| 10438 | """ |
| 10439 | old_rotation = annot_preprocess(self) |
| 10440 | try: |
| 10441 | annot = self._add_ink_annot(handwriting) |
| 10442 | finally: |
| 10443 | if old_rotation != 0: |
| 10444 | self.set_rotation(old_rotation) |
| 10445 | annot_postprocess(self, annot) |
| 10446 | return annot |
| 10447 | |
| 10448 | def add_line_annot(self, p1: point_like, p2: point_like) -> Annot: |
| 10449 | """Add a 'Line' annotation.""" |