(self, point, text, icon=None)
| 9813 | return Annot(annot) |
| 9814 | |
| 9815 | def _add_text_annot(self, point, text, icon=None): |
| 9816 | page = self._pdf_page() |
| 9817 | p = JM_point_from_py( point) |
| 9818 | annot = mupdf.pdf_create_annot(page, mupdf.PDF_ANNOT_TEXT) |
| 9819 | r = mupdf.pdf_annot_rect(annot) |
| 9820 | r = mupdf.fz_make_rect(p.x, p.y, p.x + r.x1 - r.x0, p.y + r.y1 - r.y0) |
| 9821 | mupdf.pdf_set_annot_rect(annot, r) |
| 9822 | mupdf.pdf_set_annot_contents(annot, text) |
| 9823 | if icon: |
| 9824 | mupdf.pdf_set_annot_icon_name(annot, icon) |
| 9825 | mupdf.pdf_update_annot(annot) |
| 9826 | JM_add_annot_id(annot, "A") |
| 9827 | return Annot(annot) |
| 9828 | |
| 9829 | def _add_text_marker(self, quads, annot_type): |
| 9830 |
no test coverage detected