Skip to content

Commit a7ff9a3

Browse files
changes.txt tests/: updates to match new fixes on 1.28.x branch.
1 parent 3b43dde commit a7ff9a3

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎changes.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ Change Log
77
Fixed issues:
88

99
* **Fixed** `4994 <https://github.com/pymupdf/PyMuPDF/issues/4994>`_: Dehyphenate does no longer work since 1.27.1
10+
* **Fixed** `5054 <https://github.com/pymupdf/PyMuPDF/issues/5054>`_: clean_contents(sanitize=True) drops glyph positioning, duplicating an overprinted leading glyph (regression in 1.28.0 from 1.27.2.3)
1011
* **Fixed** `5059 <https://github.com/pymupdf/PyMuPDF/issues/5059>`_: Annotations disappear or move when using Page.remove_rotation() for 90 or 270 rotated pages
1112
* **Fixed** `5067 <https://github.com/pymupdf/PyMuPDF/issues/5067>`_: Memory leak in extractBLOCKS (_as_blocks): text object reference never released
1213
* **Fixed** `5077 <https://github.com/pymupdf/PyMuPDF/issues/5077>`_: Page.remove_rotation() takes minutes on pages with thousands of links
14+
* **Fixed** `5082 <https://github.com/pymupdf/PyMuPDF/issues/5082>`_: Regression in 1.28.x: get_pixmap() and get_text() hang at 100% CPU on a specific PDF; works in 1.27.2.3
1315
* **Fixed** `5100 <https://github.com/pymupdf/PyMuPDF/issues/5100>`_: Import of fitz prints to console instead of generating a DeprecationWarning
16+
* **Fixed** `5101 <https://github.com/pymupdf/PyMuPDF/issues/5101>`_: Cyclic Widget /Parent makes page operations fail with FzErrorFormat: code=7: cycle in resources
1417
* **Fixed** `5112 <https://github.com/pymupdf/PyMuPDF/issues/5112>`_: Stack-based buffer overflow in JM_set_annot_callout_line
1518

1619
Other:

‎tests/test_general.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2279,7 +2279,7 @@ def test_5054():
22792279
text2 = page.get_text()
22802280
print(f'{text1=}')
22812281
print(f'{text2=}')
2282-
if pymupdf.mupdf_version_tuple < (1, 28, 6):
2282+
if pymupdf.mupdf_version_tuple < (1, 28, 5):
22832283
assert text2 != text1
22842284
else:
22852285
assert text2 == text1

‎tests/test_pixmap.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ def test_5082():
806806
except subprocess.TimeoutExpired:
807807
timeout = True
808808
print(f'test_5082(): {timeout=}')
809-
if pymupdf.mupdf_version_tuple < (1, 28, 6):
809+
if pymupdf.mupdf_version_tuple < (1, 28, 5):
810810
assert timeout, f'Expected timeout from {pymupdf.mupdf_version=}.'
811811
else:
812812
assert not timeout, f'Unexpected timeout from {pymupdf.mupdf_version=}.'

‎tests/test_widgets.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ def test_5101():
546546
path = os.path.normpath(f'{__file__}/../../tests/resources/test_5101.pdf')
547547
with pymupdf.open(path) as document:
548548
print(f'{len(document)=}')
549-
if pymupdf.mupdf_version_tuple >= (1, 28, 6):
549+
if pymupdf.mupdf_version_tuple >= (1, 28, 5):
550550
page = document[0]
551551
wt = pymupdf.TOOLS.mupdf_warnings()
552552
print(f'{wt=}')

0 commit comments

Comments
 (0)