Insert a new link for the current page.
(page: Page, lnk: dict, mark: bool = True)
| 1715 | |
| 1716 | |
| 1717 | def 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 | |
| 1727 | def insert_textbox( |
nothing calls this directly
no test coverage detected
searching dependent graphs…