Insert a new link for the current page.
(page: 'Page', lnk: dict, mark: bool = True)
| 12553 | return xref |
| 12554 | |
| 12555 | def insert_link(page: 'Page', lnk: dict, mark: bool = True) -> None: |
| 12556 | """Insert a new link for the current page.""" |
| 12557 | CheckParent(page) |
| 12558 | annot = utils.getLinkText(page, lnk) |
| 12559 | if annot == "": |
| 12560 | raise ValueError("link kind not supported") |
| 12561 | page._addAnnot_FromString((annot,)) |
| 12562 | |
| 12563 | def insert_text( |
| 12564 | page: 'Page', |