MCPcopy Index your code
hub / github.com/pymupdf/PyMuPDF / annot_postprocess

Function annot_postprocess

src/__init__.py:23694–23704  ·  view source on GitHub ↗

Clean up after annotation insertion. Set ownership flag and store annotation in page annotation dictionary.

(page: "Page", annot: "Annot")

Source from the content-addressed store, hash-verified

23692
23693
23694def annot_postprocess(page: "Page", annot: "Annot") -> None:
23695 """Clean up after annotation insertion.
23696
23697 Set ownership flag and store annotation in page annotation dictionary.
23698 """
23699 #annot.parent = weakref.proxy(page)
23700 assert isinstance( page, Page)
23701 assert isinstance( annot, Annot)
23702 annot.parent = page
23703 page._annot_refs[id(annot)] = annot
23704 annot.thisown = True
23705
23706
23707def canon(c):

Callers 12

add_caret_annotMethod · 0.85
add_circle_annotMethod · 0.85
add_file_annotMethod · 0.85
add_freetext_annotMethod · 0.85
add_ink_annotMethod · 0.85
add_line_annotMethod · 0.85
add_polygon_annotMethod · 0.85
add_polyline_annotMethod · 0.85
add_rect_annotMethod · 0.85
add_redact_annotMethod · 0.85
add_stamp_annotMethod · 0.85
add_text_annotMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…