Imported Comments are Rotated

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

guebert
User
Posts: 156
Joined: Sun Apr 06, 2008 7:05 pm

Imported Comments are Rotated

Post by guebert »

I have exactly this problem:
Comments upside-down after copy/paste
I try to copy/paste comments from a pdf file to another pdf file. Either copy paste or the command import comments gives me a copy of my comments but upside-down. How to rotate them, or get thelm directly the good way
and found this answer / "solution":
The most likely cause for this is that the pages of one of the files are rotated (even though they might not look like it). You can find out which one it is by executing this code from the JS console with the file open:
getPageRotation(0)
If the result is not 0, then the pages of that file are rotated.

The solution is to "re-fry" that file, ie. to print it to the PDF printer, thus creating a new PDF file, without the rotations this time. Then try to import your comments into this new version...
[url]https://answers.acrobatusers.com/Comments-upside-copy-paste-q12449.aspx[/url]

In my case the scanner seems to set some "PDF roation" to the file.

Is there a way in PDF-XChange Editor to reset this value "PageRotation"?

Michael
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11586
Joined: Wed Jan 03, 2018 6:52 pm

Re: Imported Comments are Rotated

Post by Daniel - PDF-XChange »

Hello, guebert

The only way to reset page rotation is to rotate the pages themselves back to their original rotation value (IE, if a page is 90 degrees rotated now causing it to appear in portrait orientation, you will need to set the rotation value back to 0 degrees, which will place the page in Landscape orientation instead.

With that said, if you are running the current latest version of our software, this should not be an issue. Simply do both the Copy and Paste commands within our software, and the content should respect the current orientation of both documents, like so (click animated gif to watch, this is a long recording):
PDFXEdit_RmFC11Ofk7.gif
Please do check that you are dully up to date and running Version 9.5, build 366.0 currently.

Kind regards,
You do not have the required permissions to view the files attached to this post.
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
guebert
User
Posts: 156
Joined: Sun Apr 06, 2008 7:05 pm

Re: Imported Comments are Rotated

Post by guebert »

Daniel,

thanks for your reply! I got it!

My client sent me a PDF - looked "normal", but all pages with even numbers were rotated 270°, all odd numbers 90°

During a meeting, I got the same document on paper and added some comments with pencil. I scanned this paper to PDF and this PDF was rotated 0°.

When I exported the electronic comments from the "native" PDF to add them to the scanned PDF, I got in trouble. ;-)

So is there a way, to tell PDFX "Take this PDF as is and (therefore [!]) set "Rotation" to 0° for each page?

Additional question: Is there any "rotation" information in an fdf file? Then you could implement a check, if it matches the target file and ask the user "... would you like to import 'as is' or should we assume, the targed pages are not roated ..."

Michael
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11586
Joined: Wed Jan 03, 2018 6:52 pm

Re: Imported Comments are Rotated

Post by Daniel - PDF-XChange »

Hello, guebert

Import/export comments feature records the coordinates of the comments on the page, but not the rotation (because rotation moves the X/Y origin/axes of the page). In this situation, where you wish to move comments from a rotated to a non-rotated version of the document, you will want to use Copy/paste, instead of the import/export function.

The simplest way to do this will be to:
1. Open the old document, look at page 1, and open the comments pane (Ctrl_M).
2. While looking at page 1, click inside the comments pane, and use Ctrl_A to select all comments,
3. then Ctrl_C to copy them, and now,
4. move to the new document, while looking at page 1, paste with Ctrl_V
Once that is done, you will find the comments are placed normally having transformed to match the new rotation, instead of using the old rotation value.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com