Skip to content

Commit

Permalink
Fixing #2553 number 2
Browse files Browse the repository at this point in the history
Ensure that this build contains MuPDF fix https://bugs.ghostscript.com/show_bug.cgi?id=707045
  • Loading branch information
JorjMcKie committed Nov 23, 2023
1 parent 4d02522 commit bebd5ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file added tests/resources/test_2553-2.pdf
Binary file not shown.
7 changes: 7 additions & 0 deletions tests/test_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,13 @@ def show(l):
print(f'Checking occurrence of 0xFFFD, {fitz.mupdf_version_tuple=}.')
assert chr(0xFFFD) in set1

def test_2553-2():
doc = fitz.open(f"{scriptdir}/resources/test_2553-2.pdf")
page = doc[0]

# extract plain text, ensure that there are no 0xFFFD characters
text = page.get_text()
assert chr(0xfffd) not in text

def test_2635():
"""Rendering a page before and after cleaning it should yield the same pixmap."""
Expand Down

0 comments on commit bebd5ec

Please sign in to comment.