MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / _test_extract3

Function _test_extract3

tests/test_textextract.py:66–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64 sys.stdout.flush()
65
66def _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
81def test_extract4():
82 '''

Callers

nothing calls this directly

Calls 2

flushMethod · 0.80
get_textMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…