Skip to content

Commit 4884190

Browse files
tests/: added test_4435().
1 parent 2c0b56a commit 4884190

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

tests/resources/test_4435.pdf

72.8 KB
Binary file not shown.

tests/test_pixmap.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,3 +510,15 @@ def test_4336():
510510

511511
if cc_old:
512512
assert cc == cc_old
513+
514+
515+
def test_4435():
516+
print(f'{pymupdf.version=}')
517+
path = os.path.normpath(f'{__file__}/../../tests/resources/test_4435.pdf')
518+
with pymupdf.open(path) as document:
519+
page = document[2]
520+
print(f'Calling page.get_pixmap().', flush=1)
521+
pixmap = page.get_pixmap(alpha=False, dpi=120)
522+
print(f'Called page.get_pixmap().', flush=1)
523+
wt = pymupdf.TOOLS.mupdf_warnings()
524+
assert wt == 'bogus font ascent/descent values (0 / 0)\n... repeated 9 times...'

0 commit comments

Comments
 (0)