Fetch all comments from Word document .Licensed

hi All,

This is regarding Fetching comments from Word document. I workd for a Company and we have license under this account.

I am facing issues. Please combine my questions along with another user account ‘mamt.acd’

I using the license, still the same.

NodeCollection comments = doc.getChildNodes(NodeType.COMMENT, true);
JSONArray commentJsonArray = new JSONArray();
System.out.println(“comments lenght : “+comments.getCount());
for (Comment comment : (Iterable) comments) {
JSONObject commentsData = new JSONObject();
String commentAuthor = comment.getAuthor();
Date commentDate = comment.getDateTime();
String commentText = comment.getText();
commentText =commentText.replaceAll(”[^\x20-\x7e]”, “”);
System.out.println(“Comment --------”+commentText);
commentsData.put(“commentDate”, commentDate);
commentsData.put(“author”, commentAuthor);
commentsData.put(“comments”, commentText);

how ever the above code does not return all the comments.

I had posted this issue under the account ‘mamt.acd’, now we have license and please assist.

A post was merged into an existing topic: Get comments of document