code: def updateLink(page, lnk):
      
      CheckParent(page)
      annot = getLinkText(page, lnk)
      if annot == "":
          raise ValueError("link kind not supported")
  
      page.parent._updateObject(lnk["xref"], annot, page = page) 
      return
docs: Update a link on the current page.