Highlighted

Batch edit properties of selected comments

New Here ,
Oct 08, 2020

Copy link to clipboard

Copied

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!

 

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

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";
	}
}
TOPICS
Edit and convert PDFs

Views

31

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Batch edit properties of selected comments

New Here ,
Oct 08, 2020

Copy link to clipboard

Copied

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!

 

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

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";
	}
}
TOPICS
Edit and convert PDFs

Views

32

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 08, 2020 0
Most Valuable Participant ,
Oct 09, 2020

Copy link to clipboard

Copied

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";
	}
}

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 09, 2020 1
New Here ,
Oct 09, 2020

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 09, 2020 0