Update a link on the current page.
(page: Page, lnk: dict)
| 1704 | |
| 1705 | |
| 1706 | def 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 | |
| 1717 | def insert_link(page: Page, lnk: dict, mark: bool = True) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…