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!
The T in "this" needs to be lower case.
As well as the S in "selected".
Copy link to clipboard
Copied
The T in "this" needs to be lower case.
Copy link to clipboard
Copied
As well as the S in "selected".
Copy link to clipboard
Copied
Thank you!
Copy link to clipboard
Copied
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;