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.
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});
}
}
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});
}
}
Copy link to clipboard
Copied
Thanks so much! it will help a lot!
regards