Reducing sticky notes by 1/2
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
