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

Rotate comment in Adobe Acrobat Pro

New Here ,
May 30, 2024 May 30, 2024

Copy link to clipboard

Copied

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

Views

131

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

correct answers 2 Correct answers

Engaged , May 30, 2024 May 30, 2024

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

Votes

Translate

Translate
Engaged , May 30, 2024 May 30, 2024

As well as the S in "selected".

Votes

Translate

Translate
Engaged ,
May 30, 2024 May 30, 2024

Copy link to clipboard

Copied

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

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

Copy link to clipboard

Copied

As well as the S in "selected".

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

Copy link to clipboard

Copied

Thank you!

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

Copy link to clipboard

Copied

LATEST

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;

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