Skip to content

Commit c77d570

Browse files
tests/: added test for #4907 (already fixed in 1.27.1).
1 parent 5e77616 commit c77d570

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

tests/resources/test_4907.pdf

38 KB
Binary file not shown.

tests/test_general.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2195,3 +2195,13 @@ def process_document(document):
21952195
def test_4746():
21962196
archive = pymupdf.Archive('.')
21972197
archive.add(__file__, 'foo')
2198+
2199+
2200+
def test_4907():
2201+
print()
2202+
path = os.path.normpath(f'{__file__}/../../tests/resources/test_4907.pdf')
2203+
with pymupdf.open(path) as document:
2204+
for i, page in enumerate(document):
2205+
print(f'{i=}')
2206+
display_list = page.get_displaylist(annots=False)
2207+
text_page = display_list.get_textpage()

0 commit comments

Comments
 (0)