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

Function test_4423

tests/test_pixmap.py:538–558  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

536
537
538def 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
561def test_4445():

Callers

nothing calls this directly

Calls 2

mupdf_warningsMethod · 0.80
saveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…