Skip to content

Commit

Permalink
tests/test_textbox.py: added test for #3559.
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-smith-artifex-com committed Jun 10, 2024
1 parent 9a2f80b commit c1cc960
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_textbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,3 +260,14 @@ def test_htmlbox3():
# lowlevel-extract inserted text to access opacity
span = page.get_texttrace()[0]
assert span["opacity"] == 0.5


def test_3559():
if pymupdf.mupdf_version_tuple < (1, 24, 4):
print(f'test_3559(): Not running because mupdf known to SEGV.')
return
doc = pymupdf.Document()
page = doc.new_page()
text_insert="""<body><h3></h3></body>"""
rect = pymupdf.Rect(100, 100, 200, 200)
page.insert_htmlbox(rect, text_insert)

0 comments on commit c1cc960

Please sign in to comment.