Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Change Log
==========


**Changes in version 1.27.1** ()
**Changes in version 1.27.1** (2026-02-11)

* Use MuPDF-1.27.1.

Expand Down
1 change: 1 addition & 0 deletions src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17576,6 +17576,7 @@ def width(self):
TEXT_CLIP = mupdf.FZ_STEXT_CLIP
if mupdf_version_tuple >= (1, 27, 1):
TEXT_LAZY_VECTORS = mupdf.FZ_STEXT_LAZY_VECTORS
if mupdf_version_tuple >= (1, 27, 2):
TEXT_FUZZY_VECTORS = mupdf.FZ_STEXT_FUZZY_VECTORS

TEXT_PARAGRAPH_BREAK = mupdf.FZ_STEXT_PARAGRAPH_BREAK
Expand Down
Binary file added tests/resources/test_4907.pdf
Binary file not shown.
10 changes: 10 additions & 0 deletions tests/test_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -2195,3 +2195,13 @@ def process_document(document):
def test_4746():
archive = pymupdf.Archive('.')
archive.add(__file__, 'foo')


def test_4907():
print()
path = os.path.normpath(f'{__file__}/../../tests/resources/test_4907.pdf')
with pymupdf.open(path) as document:
for i, page in enumerate(document):
print(f'{i=}')
display_list = page.get_displaylist(annots=False)
text_page = display_list.get_textpage()