| 12157 | return utils.get_textpage_ocr(self, *args, **kwargs) |
| 12158 | |
| 12159 | def get_textpage(self, clip: rect_like = None, flags: int = 0, matrix=None) -> "TextPage": |
| 12160 | CheckParent(self) |
| 12161 | if matrix is None: |
| 12162 | matrix = Matrix(1, 1) |
| 12163 | old_rotation = self.rotation |
| 12164 | if old_rotation != 0: |
| 12165 | self.set_rotation(0) |
| 12166 | try: |
| 12167 | textpage = self._get_textpage(clip, flags=flags, matrix=matrix) |
| 12168 | finally: |
| 12169 | if old_rotation != 0: |
| 12170 | self.set_rotation(old_rotation) |
| 12171 | textpage = TextPage(textpage) |
| 12172 | textpage.parent = weakref.proxy(self) |
| 12173 | return textpage |
| 12174 | |
| 12175 | def get_texttrace(self): |
| 12176 | |