()
| 536 | |
| 537 | |
| 538 | def test_4423(): |
| 539 | path = os.path.normpath(f'{__file__}/../../tests/resources/test_4423.pdf') |
| 540 | with pymupdf.open(path) as document: |
| 541 | path2 = f'{path}.pdf' |
| 542 | ee = None |
| 543 | try: |
| 544 | document.save( |
| 545 | path2, |
| 546 | garbage=4, |
| 547 | expand=1, |
| 548 | deflate=True, |
| 549 | pretty=True, |
| 550 | no_new_id=True, |
| 551 | ) |
| 552 | except Exception as e: |
| 553 | print(f'Exception: {e}') |
| 554 | ee = e |
| 555 | |
| 556 | assert not ee, f'Received unexpected exception: {e}' |
| 557 | wt = pymupdf.TOOLS.mupdf_warnings() |
| 558 | assert wt == 'format error: cannot find object in xref (56 0 R)\nformat error: cannot find object in xref (68 0 R)' |
| 559 | |
| 560 | |
| 561 | def test_4445(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…