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

Function test_2730

tests/test_general.py:616–624  ·  view source on GitHub ↗

Ensure identical output across text extractions.

()

Source from the content-addressed store, hash-verified

614
615
616def test_2730():
617 """Ensure identical output across text extractions."""
618 doc = pymupdf.open(f"{scriptdir}/resources/test_2730.pdf")
619 page = doc[0]
620 s1 = set(page.get_text()) # plain text extraction
621 s2 = set(page.get_text(sort=True)) # uses "blocks" extraction
622 s3 = set(page.get_textbox(page.rect))
623 assert s1 == s2
624 assert s1 == s3
625
626
627def test_2553():

Callers

nothing calls this directly

Calls 2

get_textMethod · 0.45
get_textboxMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…