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

Function test_stamp

tests/test_annots.py:144–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142
143
144def test_stamp():
145 doc = pymupdf.open()
146 page = doc.new_page()
147 annot = page.add_stamp_annot(r, stamp=0)
148 assert annot.type == (13, "Stamp")
149 assert annot.info["content"] == "Approved"
150 annot_id = annot.info["id"]
151 annot_xref = annot.xref
152 page.load_annot(annot_id)
153 page.load_annot(annot_xref)
154 page = doc.reload_page(page)
155
156
157def test_image_stamp():

Callers

nothing calls this directly

Calls 4

new_pageMethod · 0.80
add_stamp_annotMethod · 0.80
load_annotMethod · 0.80
reload_pageMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…