Copy link to clipboard
Copied
Hi,
I have run " Compare Documents" in Acrobat 8.0 with Consolidated report type. After getting compare report all the comments are get locked. I am unable to unlock the lock in comments.
I have checked the properties there is no lock enabled.
Please help.
Thanks,
Santhosh
Arrg 😞 I missed that bit. No, forEach won't work in Acrobat 8.
Here's the same script the old way.
var aAnts = this.getAnnots();
for(var i=0;i<aAnts.length;i++)
{aAnts[i].readOnly = false;}
Copy link to clipboard
Copied
Hi Santosh
We are sorry for the trouble. As described, after comparing the PDFs the comments get locked and you are unable to unlock them using Acrobat 8.
Acrobat 8 is an old application and no longer supported. The updates and security patches are no longer available. Adobe strongly recommends that customers update to the latest versions of Adobe Reader and Adobe Acrobat. By updating installations to the latest versions, customers benefit from the latest functional enhancements and improved security measures.
For more information please use the help articles below:
- https://helpx.adobe.com/acrobat/kb/end-support-acrobat-8-reader.html
- https://helpx.adobe.com/support/programs/adobe-support-policies-supported-product-versions.html
You may please try the steps provided in the help links below and see if that works:
- https://answers.acrobatusers.com/How-I-unlock-Comments-Annotations-T-typewritten-text-q208175.aspx
- https://helpx.adobe.com/in/acrobat/using/comments.html#delete_comments
Note: The steps suggested may or may not work.
Regards,
Amal
Copy link to clipboard
Copied
All of the Annots on this PDF have the readOnly property set to true.
This property cannot be set from the user interface. Run this code in the console window to reset this property, so the annots can be selected and manipulated with the mouse:
this.getAnnots().forEach(function(a){a.readOnly = false;});
However, If all you want to do is remove the annots, then use this code;
this.getAnnots().forEach(function(a){a.destroy();});
This code performs exactly the same function as that provided by ls_rbls.
I'm sure that code didn't work for you because you didn't run it from the Console Window.
You'll find a tutorial on the Console Window here:
https://www.pdfscripting.com/public/Free_Videos.cfm#JSIntro
Copy link to clipboard
Copied
Hi Thom,
It is still a little confusing for me that the annotations have a read only attribute but the user can still open those locked annotations and add more comments to them.
The user us also able to add new annotations to the document. Those new annotations, however, can be deleted normally.
What could've happen? How does a document end up having annotations like this?
Copy link to clipboard
Copied
The annots were not added by a specific user, notice that the Author property is "undefined". And ReadOnly is different than locked. The annots are not locked. These annots are not part of a review process, so the review restrictions do not apply.
Copy link to clipboard
Copied
Great, thank you!
Copy link to clipboard
Copied
I'm not sure forEach will work in Acrobat 8...
Copy link to clipboard
Copied
Arrg 😞 I missed that bit. No, forEach won't work in Acrobat 8.
Here's the same script the old way.
var aAnts = this.getAnnots();
for(var i=0;i<aAnts.length;i++)
{aAnts[i].readOnly = false;}
Copy link to clipboard
Copied
Thanks for the above script. It's working for my requirement. Again Thanks a lot...
Copy link to clipboard
Copied
Hi,
Here are a few suggestions :
this.syncAnnot();
var annots = this.getAnnots();
if (annots!=null){
for (var i=annots.length-1; i>=0; i--) {
annots.destroy();
}
}
However, I believe that you should be able to expand the comment pane , to the right margin of the Acrobat work space.
You should see a list of comments listed in there; select all comments and delete them
I hope this help.
NOTE: some of these suggestions were taken from here:
Copy link to clipboard
Copied
Hi,
Supplied javascript is not working for my file. Can you please check the file in below link and remove the comments lock in your end.
Thanks,
Santhosh
Copy link to clipboard
Copied
It contains some errors. Use this:
this.syncAnnotScan();
var annots = this.getAnnots();
if (annots!=null){
for (var i=annots.length-1; i>=0; i--) {
annots[i].destroy();
}
}
Copy link to clipboard
Copied
If i run the above script, all the comments are deleted.
My requirement is Remove the locks in comments. Please advise.,
Copy link to clipboard
Copied
Hola pues es la misma proble k yo tenjo
Copy link to clipboard
Copied
You're welcome
Copy link to clipboard
Copied
Hi Santhosh,
Please disregard the guidance that I posted earlier.
None of the suggestions offered in this thread applies to your case.
I went ahead and downloaded your shared file. For some reason your comments were added in a way that I yet don't fully understand. I am assuming that the source document, which initially had those annotations, was refried and then converted back to PDF.
The reason I'm saying this, is because using any of the methods offered here in this post doesn't resolves the issue; not even the script.
You will be able, however, to get rid of all of these comments if you go to Edit, and select "Edit Text & Images".
When you do this, you will noticie that if you right-click on each comment it will be treated as a note and not a comment field per se.
If you right-click on the annotation it will popup a context menu with two options" Open Note or Delete Sticky Note.
Chose "Delete Sticky Note" and you will be good to go. See slide below:
So in the end, there was no need to apply a script.
Copy link to clipboard
Copied
Hi,
There is no comments in the source PDF. We have just run the Compare in Acrobat 8.0 and comes with comments in locked mode by default. We are unable to unlock those comments which i mentioned earlier forum. Please advise how to break those locks.
Thanks,
Santhosh
Copy link to clipboard
Copied
Please see my comments above. I've already solved your issue.
Copy link to clipboard
Copied
Hi,
I already showed you how to. I downloaded the file that you shared and I was able to remove the comments using Edit Text & Images.
The solution I offered is removing the comments, not unlocking them.
It is worth noting that I was able to that using Adobe Acrobat Pro DC updated to its latest version in Windows 10.
If you are missing editing features in your old version you may have to refer to its release notes and download its latest update that was published... if you're lucky to find it and if it is available somewhere, how to actually get it.
The script solution that Thom Parker offered you , on the other hand, which involves unlocking the comments via use of script is the solution that you're asking.
You have to check in your version why can't you run the console to test the script.
Copy link to clipboard
Copied
Try File - Save as other - Optimized PDF, then select only Discard user data - (Check only "Discard all comments, forms and multimedia)