How to give specific comment to specific documents?

I am rendering 3 pdf one by one, giving different comments and statically passing those comments to pdf using importAnnotation. But those three pdf have same comments which i have statically adding, please can you guide how we can identify unique pdf and there comments.

Hi tejshree.bang,

This does depend on how you’re loading the documents, however, if you want to check the filename of the document to see if its the right document before importing annotations you could do:

instance.Core.documentViewer.getDocument().filename

Best regards,
Tyler