Skip to main content
Participant
September 13, 2021
Question

Reducing sticky notes by 1/2

  • September 13, 2021
  • 2 replies
  • 334 views

I am trying to reduce sticky notes by 1/2.  I researched this on this forum and found the following code.

this.syncAnnotScan();
var annots = this.getAnnots();
if (annots!=null) {
for (var i in annots) {
var annot = annots[i];
if (annot.type=="Text") {
var r = annot.rect;
var width = r[2]-r[0];
var height = r[3]-r[1];
r[2]+=width/2;
r[1]-=height/2;
annot.rect = r;
}
}
}

 

when i run the code on the console window I get the following error

TypeError: this.syncAnnotScan is not a function
1:Console:Exec
undefined

I am running on chrome...if that has anything to do with the error.

Thanks

 

This topic has been closed for replies.

2 replies

Bernd Alheit
Community Expert
Community Expert
September 16, 2021

Repair the Acrobat installation.

Bernd Alheit
Community Expert
Community Expert
September 13, 2021

Use the script in the console of Adobe Acrobat.

Ernie5EC4Author
Participant
September 15, 2021

Bernd, I am running the script in the Adobe Acrobat console.

Thanks