请参考以下代码:
// 创建一个链接注释
Link link = new Link(page.addAnnot(Annot.e_Link, new RectF(350, 350, 380, 400)));
link.setHighlightingMode(Annot.e_HighlightingToggle);
// 为链接注释添加操作
Action action = Action.create(page.getDocument(), Action.e_TypeURI);
URIAction uriAction = new URIAction(action);
uriAction.setTrackPositionFlag(true);
uriAction.setURI("www.foxitsoftware.com");
link.setAction(uriAction);
//重置外观
link.resetAppearanceStream();