()
| 64 | sys.stdout.flush() |
| 65 | |
| 66 | def _test_extract3(): |
| 67 | import sys |
| 68 | import time |
| 69 | path = f'{scriptdir}/../../PyMuPDF-performance/adobe.pdf' |
| 70 | if not os.path.exists(path): |
| 71 | print(f'test_extract3(): not running because does not exist: {path}') |
| 72 | return |
| 73 | doc = pymupdf.open( path) |
| 74 | t0 = time.time() |
| 75 | for page in doc: |
| 76 | page.get_text('json') |
| 77 | t = time.time() - t0 |
| 78 | print(f't={t}') |
| 79 | sys.stdout.flush() |
| 80 | |
| 81 | def test_extract4(): |
| 82 | ''' |