We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c0b56a commit 4884190Copy full SHA for 4884190
tests/resources/test_4435.pdf
72.8 KB
tests/test_pixmap.py
@@ -510,3 +510,15 @@ def test_4336():
510
511
if cc_old:
512
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