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

Function test_3594

tests/test_textextract.py:345–360  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

343
344
345def test_3594():
346 verbose = 0
347 print()
348 d = pymupdf.open(os.path.abspath(f'{__file__}/../../tests/resources/test_3594.pdf'))
349 for i, p in enumerate(d.pages()):
350 text = p.get_text()
351 print(f'Page {i}:')
352 if verbose:
353 for line in text.split('\n'):
354 print(f' {line!r}')
355 print('='*40)
356 wt = pymupdf.TOOLS.mupdf_warnings()
357 if pymupdf.mupdf_version_tuple < (1, 26, 8):
358 assert not wt
359 else:
360 assert wt == 'Actualtext with no position. Text may be lost or mispositioned.\n... repeated 2 times...'
361
362
363def test_3687():

Callers

nothing calls this directly

Calls 3

pagesMethod · 0.80
mupdf_warningsMethod · 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…