• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Reducing sticky notes by 1/2

New Here ,
Sep 13, 2021 Sep 13, 2021

Copy link to clipboard

Copied

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

 

TOPICS
Comment markup and annotate

Views

179

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 13, 2021 Sep 13, 2021

Copy link to clipboard

Copied

Use the script in the console of Adobe Acrobat.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 15, 2021 Sep 15, 2021

Copy link to clipboard

Copied

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

Thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 15, 2021 Sep 15, 2021

Copy link to clipboard

Copied

LATEST

Repair the Acrobat installation.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines