def on_update_page_links(self, evt):
if not self.update_links:                 <EOL><INDENT>evt.Skip()<EOL>return<EOL><DEDENT>pg = self.doc[getint(self.TextToPage.Value) -<NUM_LIT:1>]<EOL>for i in range(len(self.page_links)):<EOL><INDENT>l = self.page_links[i]<EOL>if l.get("<STR_LIT>", False):            <EOL><INDENT>if l["<STR_LIT>"] == <NUM_LIT:0>:                <EOL><INDENT>pg.insertLink(l)<EOL><DEDENT>elif l["<STR_LIT>"] < <NUM_LIT:1> or l["<STR_LIT>"] > len(self.linkTypeStrings):<EOL><INDENT>pg.deleteLink(l)              <EOL><DEDENT>else:<EOL><INDENT>pg.updateLink(l)              <EOL><DEDENT><DEDENT>l["<STR_LIT>"] = False                   <EOL>self.page_links[i] = l                <EOL><DEDENT>self.btn_Update.Disable()                 <EOL>self.t_Update.Label = "<STR_LIT>"                  <EOL>self.btn_Save.Enable()<EOL>self.t_Save.Label = "<STR_LIT>"<EOL>evt.Skip()<EOL>return<EOL>
Perform PDF update of changed links.