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

Function test_text

tests/test_annots.py:52–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50
51
52def test_text():
53 doc = pymupdf.open()
54 page = doc.new_page()
55 annot = page.add_text_annot(r.tl, t1)
56 assert annot.type == (0, "Text")
57
58
59def test_highlight():

Callers

nothing calls this directly

Calls 2

new_pageMethod · 0.80
add_text_annotMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…