Add a 'PolyLine' annotation.
(self, points: list)
| 10468 | return annot |
| 10469 | |
| 10470 | def add_polyline_annot(self, points: list) -> Annot: |
| 10471 | """Add a 'PolyLine' annotation.""" |
| 10472 | old_rotation = annot_preprocess(self) |
| 10473 | try: |
| 10474 | annot = self._add_multiline(points, mupdf.PDF_ANNOT_POLY_LINE) |
| 10475 | finally: |
| 10476 | if old_rotation != 0: |
| 10477 | self.set_rotation(old_rotation) |
| 10478 | annot_postprocess(self, annot) |
| 10479 | return annot |
| 10480 | |
| 10481 | def add_rect_annot(self, rect: rect_like) -> Annot: |
| 10482 | """Add a 'Square' (rectangle) annotation.""" |