We are trying to develop an application which uses the annotations module. Whenever a user leaves a series of comments during a single annotation session, what we would like to do is:
a) extract a copy of that user's comments, grouped by session id and user id. A session begins when annotator function commences and ends when user ends it or navigates away from the page;
b) get a copy of the text (Subject Text) to which the comments relate, linked by comment id.
c) extract location data for the Subject Text.
We want this information so that we can store it in our own database for the purposes of the application. The application will use it as follows:
- when our application displays a comment outside of GroupDocs, we will display the comment and the Subject Text alongside it. The comment/Subject Text will be logically grouped by session/user id
- when a user clicks on a comment (outside the GroupDocs app), we would like to fire an API event that causes GroupDocs to scroll to the relevant page and highlight the relevant Subject Text.
Unfortunately when we try and extract comment data, the session GUID field is null which means we can't group comments by session, and we are struggling to locate the other information we require. We would also like help with the API event to view the document comment.