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

Rotate comment in Adobe Acrobat Pro

New Here ,
May 30, 2024 May 30, 2024

Hi All,

 

I'm copying and pasting comments from one pdf file to another. When I paste comments to the destination file the comments are being rotated.

 

I found a couple of youtube videos showing how to use the JavaScript Debugger to select and then rotate the comment using the following command:

 

This.SelectedAnnots[0].rotate=90;

 

The probelm is when I select the comment (not text) and then execute using Ctrl+Enter i get the following error:

 

ReferenceError: This is not defined
1:Console:Exec
undefined

 

Just wondering if someone can provide some assisstance?

 

Thanks!

TOPICS
JavaScript , PDF
1.3K
Translate
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
2 ACCEPTED SOLUTIONS
Community Expert ,
May 30, 2024 May 30, 2024

The T in "this" needs to be lower case.

View solution in original post

Translate
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 ,
May 30, 2024 May 30, 2024

As well as the S in "selected".

View solution in original post

Translate
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 ,
May 30, 2024 May 30, 2024

The T in "this" needs to be lower case.

Translate
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 ,
May 30, 2024 May 30, 2024

As well as the S in "selected".

Translate
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 ,
May 30, 2024 May 30, 2024

Thank you!

Translate
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 ,
May 30, 2024 May 30, 2024

If you don't want to do it one at a time you can use this code to rotate all of them in one fell swoop:

 

var annots = this.getAnnots();
for (var i in annots) annots[i].rotate=90;
Translate
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
Explorer ,
Jan 29, 2025 Jan 29, 2025
LATEST

It is quite wild that one must use scripting language to perform a common operation like rotating a comment...  This should apply to all comment objets : lines, squares, clouds, arrows, etc. Does Adobe now we are trying to work with these tools? I guess not...

Translate
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