1

I m trying to save annotation in flexpaper.. I tried using this

marksArray = JSON.stringify($FlexPaper('documentViewer').getMarkList());

var initialMarks = JSON.parse(marksArray);

$FlexPaper('documentViewer').addMarks(initialMarks);

but it's not working..

In console, I tried using marks = $FlexPaper('documentViewer').getMarkList()[0]; I can see that its storing inside marks but for $FlexPaper('documentViewer').addMarks(marks) it's showing undefined.

Am I missing something? Please help me, Thanks in advance.

4

1 回答 1

1

从 flexpaper 经典页面下载 Annotations Web Server Package 后,我们将获得所需文件。我错过的是 <'flexpaper:annotations_handler runat="server"/> 它应该在 simple_document.aspx 页面的脚本中。在 annotations_handlers.ascx 页面中,我将 (onMarkCreated ,onM​​arkDeleted,onMarkChanged) JQuery 代码转移到了 flexpaper_handlers.js 文件中。在这些更改之后,它对我有用。

于 2015-08-11T10:16:12.820 回答