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

Function test_4224

tests/test_general.py:1834–1841  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1832 assert cp.returncode
1833
1834def test_4224():
1835 path = os.path.normpath(f'{__file__}/../../tests/resources/test_4224.pdf')
1836 with pymupdf.open(path) as document:
1837 for page in document.pages():
1838 pixmap = page.get_pixmap(dpi=150)
1839 path_pixmap = f'{path}.{page.number}.png'
1840 pixmap.save(path_pixmap)
1841 print(f'Have created: {path_pixmap}')
1842
1843def test_4319():
1844 # Have not seen this test reproduce issue #4319, but keeping it anyway.

Callers

nothing calls this directly

Calls 3

pagesMethod · 0.80
get_pixmapMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…