Skip to main content
Participant
October 8, 2020
Answered

Batch edit properties of selected comments

  • October 8, 2020
  • 1 reply
  • 808 views

Hi!

I have a PDF with 40 + comments. I would like to batch edit properties (Author to be exact) on the selected comments, not on all of them. I did found a very useful post on how to batch edit comment properties on all comments but not on the selection. Is this possible at all?

I don't have any experience with JS Console but I'm willing to learn.

Thank you in advance!

 

This topic has been closed for replies.
Correct answer try67

You can do it using this code, executed from the JS Console:

 

var selAnnots = this.selectedAnnots;
if (selAnnots!=null) {
	for (var i in selAnnots) {
		selAnnots[i].author = "John";
	}
}

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
October 9, 2020

You can do it using this code, executed from the JS Console:

 

var selAnnots = this.selectedAnnots;
if (selAnnots!=null) {
	for (var i in selAnnots) {
		selAnnots[i].author = "John";
	}
}
Participant
October 9, 2020

Tried it. Works like magic. Tnx a million times!