Skip to main content
TheTooleMan
Participating Frequently
January 20, 2022
Question

How to Delete Comments by One User Only?

  • January 20, 2022
  • 2 replies
  • 1338 views

Two people have added highlights, comments, and sticky notes to a PDF. There are 1,323 comments in the document, 90% of which were entered by "Jack." I want to remove Jack's comments, but the "Delete" function is unavailable for their marks. How can I clean up this document so that only the other person's highlights and comments remain?

This topic has been closed for replies.

2 replies

Adobe Employee
January 24, 2022

Hi There,

The comments might be locked/read only. Could you please run the following snippet in JS debugger and then try deleting that user's comments?

 

this.syncAnnotScan();

var annots = this.getAnnots();

for(var i=0; i<annots.length; i++){

      annots[i].readOnly=false;

      annots[i].lock=false;

}

 

For running the JS degbugger, you may need to “Enable JavaScript” and “Enable Interactive Console” in Preferences=>JavaScript.

 

Regards,

Arvind

Document Geek
Community Expert
Community Expert
January 20, 2022

Are Jack's comments locked? 

 

Please post a screenshot of one of his comments as well as the menu where you are trying to delete it from.