Skip to content

Commit ccdefb3

Browse files
tests/: added test_4599().
1 parent 17c18fa commit ccdefb3

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

tests/resources/test_4599.pdf

661 KB
Binary file not shown.

tests/test_cluster_drawings.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,17 @@ def test_cluster3():
4545
page.draw_rect(r1)
4646
page.draw_rect(r2)
4747
assert page.cluster_drawings() == [r1, r2]
48+
49+
50+
def test_4599():
51+
print()
52+
path = os.path.normpath(f'{__file__}/../../tests/resources/test_4599.pdf')
53+
n = 0
54+
with pymupdf.open(path) as document:
55+
for page in document:
56+
for clip in page.cluster_drawings():
57+
print(clip)
58+
n += 1
59+
assert n == 3
60+
61+

0 commit comments

Comments
 (0)