Skip to main content
Participant
December 14, 2016
Answered

How to make the orientation of mutiple combined PDFs the same

  • December 14, 2016
  • 1 reply
  • 1388 views

Hello,

I'm trying copy multiple comments from one PDF to the other, when they are pasted their orientation is at 90 same as the source. The orientation of the destination PDF is 270. How do I change the orientation of either pdf so they match?

Regards,

This topic has been closed for replies.
Correct answer Karl Heinz Kremer

The codes and procedures you have posted work as they are intended. However, when I import the comment data file or manually copy a comment from one PDF to the Other (or alternately page to page in the same PDF)

Acrobat DC is still rotating the comment 180 degrees!?


Acrobat is rotating your comments because the source page rotation is different from the target page rotation. You cannot change the page rotation (unless you do some heavy lifting and process each page element at a time, rotate it and then place it in the correct position), so the only way you can fix this is to rotate the comments after you place them - e.g. using the script that Try67 provided.

1 reply

try67
Community Expert
Community Expert
December 14, 2016

The question is whether the pages are actually rotated, or just appear to be... To check it you can execute this code from the JS Console and it will print the rotation degrees for all the pages in the file:

for (var p=0; p<this.numPages; p++) {

    console.println("Page " + (p+1) + ": " + this.getPageRotation(p));

}

Participant
December 14, 2016

I have done this and confirmed that one page is set at 90 and the other at 270. So, how do actually rotate the page as apposed to the page just appearing to be rotated through the view>rotate drop down?

Thank you for your response.

try67
Community Expert
Community Expert
December 14, 2016

You can do it manually via Tools - Pages - Rotate, or automatically, using this code:

for (var p=0; p<this.numPages; p++) {

    if (this.getPageRotation(p)!=270) {

        this.setPageRotations(p, p, 270);

    }

}