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

Function test_fileattachment

tests/test_annots.py:137–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135
136
137def test_fileattachment():
138 doc = pymupdf.open()
139 page = doc.new_page()
140 annot = page.add_file_annot(rect.tl, b"just anything for testing", "testdata.txt")
141 assert annot.type == (17, "FileAttachment")
142
143
144def test_stamp():

Callers

nothing calls this directly

Calls 2

new_pageMethod · 0.80
add_file_annotMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…