()
| 474 | assert 0, f'Failed to get expected exception.' |
| 475 | |
| 476 | def test_4047(): |
| 477 | path = os.path.normpath(f'{__file__}/../../tests/resources/test_4047.pdf') |
| 478 | with pymupdf.open(path) as document: |
| 479 | page = document[0] |
| 480 | fontname = page.get_fonts()[0][3] |
| 481 | if fontname not in pymupdf.Base14_fontnames: |
| 482 | fontname = "Courier" |
| 483 | hits = page.search_for("|") |
| 484 | for rect in hits: |
| 485 | page.add_redact_annot( |
| 486 | rect, " ", fontname=fontname, align=pymupdf.TEXT_ALIGN_CENTER, fontsize=10 |
| 487 | ) # Segmentation Fault... |
| 488 | page.apply_redactions() |
| 489 | |
| 490 | def test_4079(): |
| 491 | path = os.path.normpath(f'{__file__}/../../tests/resources/test_4079.pdf') |
nothing calls this directly
no test coverage detected
searching dependent graphs…