Lock the properties of all comments in a PDF, in automatic way

New Here ,
Mar 01, 2021 Mar 01, 2021

Copy link to clipboard

Copied

Dear all, wondering if you know how to lock the properties of all the comments you have in a PDF document, Im looking for an automatic way, maybe an script.

right now I can do that in the following way>

 

-Open the PDF

-Open the comments panel

-Select all comments 

-Right click to open properties

-Lock the properties

 

Tks

David.

TOPICS
Comment review and collaborate PDF, Edit and convert PDFs, How to, JavaScript

Views

33

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
community guidelines
Most Valuable Participant ,
Mar 01, 2021 Mar 01, 2021

Copy link to clipboard

Copied

You can do it using this code:

 

this.syncAnnotScan();
var annots = this.getAnnots();
if (annots!=null) {
	for (var i in annots) {
		var annot = annots[i];
		annot.setProps({lock: true, readOnly: true});
	}
}

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
community guidelines
New Here ,
Mar 02, 2021 Mar 02, 2021

Copy link to clipboard

Copied

LATEST

Thanks so much! it will help a lot!

regards

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