Create a Comment/Note to an Annotation Javascript

Product: Webviewer

Product Version: 6.0+

Please give a brief summary of your issue:
When iterating through annotations, I want to create a new comment/note and add it to the annotation using javascript.

var aListAll = _annotManager.getAnnotationsList().filter(annot => (annot.Author.match(/([a-zA-Z]{3}[0-9]{5}.?)$/) !== null));
aListAll.forEach(a => {
var origAuthor = a.Author;
if (a.Subject != ‘Note’) {
//add new annotation comment/note here
}
});

-Thank you

Hi Mark,

When you’re trying to add a reply to an annotation you would want to look at this guide here:

If you’re trying to update the note contents, you will want to use the setNoteContents here:
https://www.pdftron.com/api/web/Core.AnnotationManager.html#setNoteContents

Best Regards,

Kevin Kim
Web Development Support Engineer
PDFTron Systems, Inc.
www.pdftron.com

Thank muchly.
I looked all over to find that page and searched the community.
That gives me just what I needed and works great.