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

Function insert_link

src_classic/utils.py:1717–1724  ·  view source on GitHub ↗

Insert a new link for the current page.

(page: Page, lnk: dict, mark: bool = True)

Source from the content-addressed store, hash-verified

1715
1716
1717def insert_link(page: Page, lnk: dict, mark: bool = True) -> None:
1718 """Insert a new link for the current page."""
1719 CheckParent(page)
1720 annot = getLinkText(page, lnk)
1721 if annot == "":
1722 raise ValueError("link kind not supported")
1723 page._addAnnot_FromString((annot,))
1724 return
1725
1726
1727def insert_textbox(

Callers

nothing calls this directly

Calls 3

CheckParentFunction · 0.85
_addAnnot_FromStringMethod · 0.80
getLinkTextFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…