Skip to content

Commit 87fe4f0

Browse files
tests/: added test_4712().
1 parent 54b5407 commit 87fe4f0

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

tests/resources/test_4712_a.pdf

2.85 KB
Binary file not shown.

tests/resources/test_4712_b.pdf

3.25 KB
Binary file not shown.

tests/test_general.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2115,3 +2115,14 @@ def test_4702():
21152115
_ = document.xref_object(xref)
21162116
wt = pymupdf.TOOLS.mupdf_warnings()
21172117
assert wt == 'repairing PDF document'
2118+
2119+
2120+
def test_4712():
2121+
path_a = os.path.normpath(f'{__file__}/../../tests/resources/test_4712_a.pdf')
2122+
path_b = os.path.normpath(f'{__file__}/../../tests/resources/test_4712_b.pdf')
2123+
doc1 = pymupdf.open(path_a)
2124+
for i in range(6):
2125+
doc1.load_page(i).get_pixmap()
2126+
doc2 = pymupdf.open(path_b)
2127+
for i in range(6):
2128+
doc2.load_page(i).get_pixmap()

0 commit comments

Comments
 (0)