(self, quads, annot_type)
| 22123 | |
| 22124 | |
| 22125 | def Page__add_text_marker(self, quads, annot_type): |
| 22126 | pdfpage = self._pdf_page() |
| 22127 | rotation = JM_page_rotation(pdfpage) |
| 22128 | def final(): |
| 22129 | if rotation != 0: |
| 22130 | mupdf.pdf_dict_put_int(pdfpage.obj(), PDF_NAME('Rotate'), rotation) |
| 22131 | try: |
| 22132 | if rotation != 0: |
| 22133 | mupdf.pdf_dict_put_int(pdfpage.obj(), PDF_NAME('Rotate'), 0) |
| 22134 | annot = mupdf.pdf_create_annot(pdfpage, annot_type) |
| 22135 | for item in quads: |
| 22136 | q = JM_quad_from_py(item) |
| 22137 | mupdf.pdf_add_annot_quad_point(annot, q) |
| 22138 | mupdf.pdf_update_annot(annot) |
| 22139 | JM_add_annot_id(annot, "A") |
| 22140 | final() |
| 22141 | except Exception: |
| 22142 | if g_exceptions_verbose: exception_info() |
| 22143 | final() |
| 22144 | return |
| 22145 | return Annot(annot) |
| 22146 | |
| 22147 | |
| 22148 | def PDF_NAME(x): |
no test coverage detected
searching dependent graphs…