PDF Editing Issues

How to Fix PDF Comment Rotation Issues When Copying Pages

Algirdas JasaitisAlgirdas Jasaitis Nov 5, 2026 868 views

Question details

Users copying comments between PDF pages experience incorrect rotation of the pasted comments due to underlying page orientation mismatches.

How to Match PDF Page Orientation When Copying Comments
Product
PDF
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 you start

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.

Solution 1Recommended

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.

1
Open the JavaScript Console

In Adobe Acrobat, navigate to Tools > JavaScript, and select 'JavaScript Debugger' to open the console window.

2
Input the Rotation Check Script

Clear the console and paste the following code: for (var p = 0; p < this.numPages; p++) { console.println("Page " + (p + 1) + ": " + this.getPageRotation(p)); }

3
Execute the Script

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.

4
Analyze and Adjust

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.

Check and Compare Page Orientations via JavaScript Console
Understanding Page vs. View Rotation: Changing the rotation in your standard 'View' menu only rotates how the document is displayed on your screen, not the actual underlying page properties. This script reveals the true, permanent properties of the document.
Efficient PDF Editing

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. 1. Open Your PDF: Launch WPS Office and open the PDF document you wish to edit.
  2. 2. Manage Page Rotation: Navigate to the 'Page' tab to visually inspect and permanently rotate pages to ensure their underlying orientations match.
  3. 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. 4. Save Changes: Click 'Save' or press Ctrl+S to lock in your page orientations and securely store your newly placed comments.
Visually manage and permanently rotate PDF pages with a single click.Easily copy, paste, and perfectly align PDF comments and annotations.Fully compatible with Adobe Acrobat PDF formats and standard PDF viewing properties.Lightweight, fast, and free alternative for everyday document editing.
microsoft office alternative - wps office

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.