Skip to main content
Participant
Sep 13, 2021 4:19 PM UTC
Question

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

 

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Bernd Alheit
Community Expert
Community Expert
Sep 16, 2021 4:13 AM UTC

Repair the Acrobat installation.

Translate
Bernd Alheit
Community Expert
Community Expert
Sep 13, 2021 4:33 PM UTC

Use the script in the console of Adobe Acrobat.

Translate
Ernie5EC4Author
Participant
Sep 15, 2021 8:06 PM UTC

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

Thanks

Translate