• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Batch edit properties of selected comments

New Here ,
Oct 08, 2020 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!

 

TOPICS
Edit and convert PDFs

Views

485

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
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 09, 2020 Oct 09, 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";
	}
}

Votes

Translate

Translate
Community Expert ,
Oct 09, 2020 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";
	}
}

Votes

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
community guidelines
New Here ,
Oct 09, 2020 Oct 09, 2020

Copy link to clipboard

Copied

LATEST

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

Votes

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
community guidelines