【Foxit PDF SDK】福昕GSDK 如何创建一个GoTo 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 = Action.create(page.getDocument(), Action.e_TypeGoto);

GotoAction gotoAction = new GotoAction(action);

Destination dest = Destination.createFitPage(doc, 0);

gotoAction.setDestination(dest);