Skip to main content
Participant
July 24, 2024
Question

Hide Date in Comments

  • July 24, 2024
  • 1 reply
  • 1003 views

Hi there,

is it possible to hide or change the date of a comment in Adobe Acrobat?

Thank you,

Carolin

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
July 24, 2024

You can't hide it. You can set it to another date, or to an invalid value (such as an empty string).

Participant
July 25, 2024

Thank you. How can I set it to another date or to an invalid value?

try67
Community Expert
Community Expert
July 25, 2024

Using a script. For example, this code will set all comments in the file to an Invalid Date:

 

this.syncAnnotScan();
var annots = this.getAnnots();
if (annots!=null) {
	for (var i in annots) {
		var annot = annots[i];
		annot.creationDate = "";
		annot.modDate = "";
	}
}

 

If you want to set them to the current time, for example, replace the two main lines with this:

 

annot.creationDate = new Date();
annot.modDate = new Date();