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

Unable to delete comments in PDF

Contributor ,
Dec 25, 2019 Dec 25, 2019

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.

 

1.png

 

 

 

 

 

 

 

 

 

 

 

I have checked the properties there is no lock enabled.

 

2.png

 

Please help.

 

Thanks,

Santhosh

Views

32.9K

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 , Dec 30, 2019 Dec 30, 2019

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

 

Votes

Translate

Translate
Adobe Employee ,
Dec 25, 2019 Dec 25, 2019

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

 

 

Regards
Amal

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
Community Expert ,
Dec 26, 2019 Dec 26, 2019

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

 

 


 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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
Community Expert ,
Dec 26, 2019 Dec 26, 2019

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?

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
Community Expert ,
Dec 27, 2019 Dec 27, 2019

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. 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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
Community Expert ,
Dec 27, 2019 Dec 27, 2019

Copy link to clipboard

Copied

Great, thank you!

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
Community Expert ,
Dec 30, 2019 Dec 30, 2019

Copy link to clipboard

Copied

I'm not sure forEach will work in Acrobat 8...

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
Community Expert ,
Dec 30, 2019 Dec 30, 2019

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

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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
Contributor ,
Jan 09, 2020 Jan 09, 2020

Copy link to clipboard

Copied

Thanks for the above script. It's working for my requirement. Again Thanks a lot...

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
Community Expert ,
Dec 25, 2019 Dec 25, 2019

Copy link to clipboard

Copied

Hi,

 

Here are a few suggestions :

 

  • With the document opened right-click on any area of the page displayed in your screen. Select "Document Properties" from the context menu, and select the Security tab from the dialogue window that will popup. Take a look at the section below  labeled Document Security , see what version of Acrobat can open this document and also to the right, click on the button that is labeled "Show Details " . You will get another  dialogue box " Document Security" which will list the security method applied followed by permissions and restrictions that are allowed. If commenting is allowed amongst other options. If commenting is allowed you may be able to work around it by creating a new comment, set defaults as new properties, save and close the document, and reopen. And see if you are now able to delete comments with the method you were trying before.
  • If that didn't work see if you can have the creator of such document unlock it or provide you with the password to remove the current security restrictions and then save, close and reopen, and try agai .
  • If that is not possible, your next best shot would be to refry the PDF document either by saving as postscript file or print to PDF directly (this method is highly discouraged though)
  • If that is not a relevant work around for your particular case you can try to add an custom action script using the Quick Tools.  This was a suggestion made by Document_Geek back in May 2019 in another thread. The following script was provided by Try67, to complement Document_Geeks's suggestion:

 

 

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:

 

https://community.adobe.com/t5/acrobat/can-i-delete-all-comments-on-a-pdf-with-one-click/td-p/104721... 

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
Contributor ,
Dec 26, 2019 Dec 26, 2019

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.

 

https://documentcloud.adobe.com/link/track?uri=urn%3Aaaid%3Ascds%3AUS%3A8bfdfeef-e741-4993-9c78-cd32... 

 

Thanks,

Santhosh

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
Community Expert ,
Dec 30, 2019 Dec 30, 2019

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();

}

}

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
Contributor ,
Jan 09, 2020 Jan 09, 2020

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.,

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 ,
Dec 26, 2019 Dec 26, 2019

Copy link to clipboard

Copied

Hola pues es la misma proble k yo tenjo 

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
Community Expert ,
Dec 26, 2019 Dec 26, 2019

Copy link to clipboard

Copied

You're welcome

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
Community Expert ,
Dec 26, 2019 Dec 26, 2019

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:

 

remove sticky note.png

 

 

So in the end, there was no need to apply a script.

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
Contributor ,
Dec 29, 2019 Dec 29, 2019

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

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
Community Expert ,
Dec 30, 2019 Dec 30, 2019

Copy link to clipboard

Copied

Please see my comments above. I've already solved your issue. 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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
Community Expert ,
Dec 30, 2019 Dec 30, 2019

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.

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 ,
Nov 10, 2024 Nov 10, 2024

Copy link to clipboard

Copied

LATEST

Try File - Save as other - Optimized PDF, then select only Discard user data - (Check only "Discard all comments, forms and multimedia)

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