【Foxit PDF SDK】福昕GSDK如何创建一个URI Action并将其插入到link注释?

请参考以下代码:

// 创建一个链接注释

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();