MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / test_3916

Function test_3916

tests/test_textbox.py:281–286  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

279
280
281def test_3916():
282 doc = pymupdf.open()
283 rect = pymupdf.Rect(100, 100, 101, 101) # Too small for the text.
284 page = doc.new_page()
285 spare_height, scale = page.insert_htmlbox(rect, "Hello, World!", scale_low=0.5)
286 assert spare_height == -1
287
288
289def test_4400():

Callers

nothing calls this directly

Calls 2

new_pageMethod · 0.80
insert_htmlboxMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…