How to Fix PDF Comment Rotation Issues When Copying Pages
Question details
Users copying comments between PDF pages experience incorrect rotation of the pasted comments due to underlying page orientation mismatches.

- Product
- Device & OS
- not provided
- Scenario
- Copying and pasting comments or annotations from one PDF page to another.
- Observed behavior
- The copied comments appear incorrectly rotated on the destination page because the source and target pages have different underlying rotation degrees.
Before modifying your PDF, create a backup copy of your document. Ensure you have access to a PDF editor with JavaScript console capabilities, such as Adobe Acrobat Pro, if you plan to use the scripting method.
Check and Compare Page Orientations via JavaScript Console
Use a simple JavaScript snippet to find the exact underlying rotation degree of each page in your PDF.
Often, a PDF page may visually appear upright but has an underlying rotation property (e.g., 90 or 180 degrees) applied. When comments are copied from a standard 0-degree page to a rotated page, they inherit the destination page's rotation, causing them to look flipped or sideways.
In Adobe Acrobat, navigate to Tools > JavaScript, and select 'JavaScript Debugger' to open the console window.
Clear the console and paste the following code: for (var p = 0; p < this.numPages; p++) { console.println("Page " + (p + 1) + ": " + this.getPageRotation(p)); }
Highlight the code and press Ctrl+Enter (or Cmd+Enter on Mac) to run it. The console will print the actual rotation in degrees for every page in the file.
Compare the rotation degrees of your source and destination pages. If they differ, you will need to either standardize the page rotations before copying or use a separate script to rotate the pasted comments.

Standardize Page Orientations Before Transferring Comments
Permanently rotate the destination pages to match the source pages before copying over your comments to avoid orientation issues.
Manage PDF Pages and Comments Easily with WPS Office
WPS Office provides a highly intuitive PDF editor that simplifies managing page orientations, adding comments, and copying annotations without the need for complex JavaScript coding. Experience seamless PDF manipulation across all your devices.
- 1. Open Your PDF: Launch WPS Office and open the PDF document you wish to edit.
- 2. Manage Page Rotation: Navigate to the 'Page' tab to visually inspect and permanently rotate pages to ensure their underlying orientations match.
- 3. Transfer Comments: Go to the 'Comment' tab to select, copy, and paste your annotations onto the properly aligned destination page without rotation glitches.
- 4. Save Changes: Click 'Save' or press Ctrl+S to lock in your page orientations and securely store your newly placed comments.

Frequently Asked Questions
Why do my PDF comments flip upside down when I paste them?
This happens because the source page and the destination page have different underlying rotation properties (e.g., 0 degrees vs 180 degrees). When pasted, the comments automatically inherit the destination page's rotation alignment.
Can I rotate multiple PDF comments at once without scripts?
Yes. In standard PDF editors like WPS Office or Adobe Acrobat, you can use the selection tool to highlight multiple annotations, then rotate them together using the object properties menu or a manual rotation handle.
Does changing the page view fix the comment rotation issue?
No, changing the 'View' rotation only alters how the document is temporarily displayed on your screen. It does not change the actual underlying page properties, meaning pasted comments will still rotate incorrectly. You must permanently rotate the page.
How do I access the JavaScript console in Adobe Acrobat?
To access the console, go to Tools > JavaScript, then select 'JavaScript Debugger'. You can type or paste your scripts directly into the Console window, highlight the code, and press Ctrl+Enter (Windows) or Cmd+Enter (Mac) to run them.




