Comment count - JavaScript
Hello,
I'm not experienced in Adobe JavaScript but recently I've faced a problem: is there a way to automatically count all types of comments in one document opened with Adobe Acrobat Reader Pro? I even found a JavaScript on the internet. Unfortunately it counts only one type of the comments:
var counter = 0;
var annots = this.getAnnots();
for (var i = 0; i < annots.length; i++) {
if (annots[i].type == "Text") {
counter++;
}
}
app.alert("Total comments count: " + counter);
Thank You in advance for help.
