Return simple, bare text on the page.
(self, sort=False)
| 16594 | return found |
| 16595 | |
| 16596 | def extractText(self, sort=False) -> str: |
| 16597 | """Return simple, bare text on the page.""" |
| 16598 | if not sort: |
| 16599 | return self._extractText(0) |
| 16600 | blocks = self.extractBLOCKS()[:] |
| 16601 | blocks.sort(key=lambda b: (b[3], b[0])) |
| 16602 | return "".join([b[4] for b in blocks]) |
| 16603 | |
| 16604 | def extractTextbox(self, rect): |
| 16605 | this_tpage = self.this |