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

Function update_link

src_classic/utils.py:1706–1714  ·  view source on GitHub ↗

Update a link on the current page.

(page: Page, lnk: dict)

Source from the content-addressed store, hash-verified

1704
1705
1706def update_link(page: Page, lnk: dict) -> None:
1707 """Update a link on the current page."""
1708 CheckParent(page)
1709 annot = getLinkText(page, lnk)
1710 if annot == "":
1711 raise ValueError("link kind not supported")
1712
1713 page.parent.update_object(lnk["xref"], annot, page=page)
1714 return
1715
1716
1717def insert_link(page: Page, lnk: dict, mark: bool = True) -> None:

Callers

nothing calls this directly

Calls 3

CheckParentFunction · 0.85
update_objectMethod · 0.80
getLinkTextFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…