Ensure identical output across text extractions.
()
| 614 | |
| 615 | |
| 616 | def 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 | |
| 627 | def test_2553(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…