Skip to main content
This topic has been closed for replies.
Correct answer try67

Just the action named delete folder annotations with this Java Script:

 

this.syncAnnotScan();
var annots = this.getAnnots();
if (annots!=null) {
for (var i=annots.length-1; i>=0; i--) {
annots[i].destroy();
}
}
 
with Add Folder defaulted on open and prompt user un-checked.
 
In one case I'm prompted to print a file and not to save it!

You need to also add a Save command, as I've mentioned before.

4 replies

New Participant
November 5, 2024

I know this was a long time ago, but if you are stilling looking for a simpler solution and are using a microsoft product I created an application that can easily do this by simply selecting the folder in your folder browser

New Participant
October 28, 2024

For others who are looking to batch remove annotations of PDFs in a folder and don't have Acrobat DC Pro or don't want to mess with scripts, BatchPurifier is a 3rd party GUI tool that can do that out of the box.

try67
Community Expert
Community Expert
November 27, 2019

You can use this JavaScript code as a part of an Action (if you have Acrobat Pro) to achieve it:

 

this.syncAnnotScan();
var annots = this.getAnnots();
if (annots!=null) {
	for (var i=annots.length-1; i>=0; i--) {
		annots[i].destroy();
	}
}
JIPNETAuthor
Inspiring
November 27, 2019

Thanks for this. I am really not sure how to create an action and add it to the A. Wizard.

 

Also, is "this" meant to be replaced by a value (ie a folder name)?

 

 

JIPNETAuthor
Inspiring
November 27, 2019

What exact command did you add?


Just the action named delete folder annotations with this Java Script:

 

this.syncAnnotScan();
var annots = this.getAnnots();
if (annots!=null) {
for (var i=annots.length-1; i>=0; i--) {
annots[i].destroy();
}
}
 
with Add Folder defaulted on open and prompt user un-checked.
 
In one case I'm prompted to print a file and not to save it!
Amal.
Community Manager
Community Manager
November 27, 2019

Hi there,

 

Thanks for reaching out. As described above, you want to remove the annotations from the PDFs in a folder.

 

Do you have Adobe Acrobat Reader DC (Freeware) or Adobe Acrobat DC (Subscription based)?

 

If you have Adobe Acrobat DC, you may use the Action Wizard Tool to remove the annotations from the PDFs in a folder. You can also create your own actions. You can access and manage the actions by clicking Tools > Action Wizard.

 

For more detailed information please use the help article here (https://helpx.adobe.com/in/acrobat/using/action-wizard-acrobat-pro.html#run_an_action)

 

Let us know how it goes.

 

Regards

Amal

JIPNETAuthor
Inspiring
November 27, 2019

Thanks. This works one by one from within a folder and requires a lot of manual intervention. I do have Acrobat DC Pro, but also have thousands of PDFs in a folder.