Hello, I have a question about changing the orientation of comments when importing to a different file.
I have exported comments from one file, then imported them to a second file. The problem I am having is that when I import them to the second file all of the comments are rotated 90 degrees counterclockwise with respect to the page of the second file. I've tried everything I can think of to get the comments in the correct orientation; I rotated the page of the first file before exporting the comments; I rotated the page of the second file before importing the comments; I rotated the page view only before importing, etc. None of my ideas have been successful, the comments always come into the second file orientated 90 degress ccw with respect to the page.
I'd really appreaciate if somebody could explain how to solve this problem.
Orientation of Comments when Importing
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
-
Stefan - PDF-XChange
- Site Admin
- Posts: 19930
- Joined: Mon Jan 12, 2009 8:07 am
Re: Orientation of Comments when Importing
Hello John,
"Document -> Rotate pages" and "View -> Rotate View" are separate and it seems from your post that you are aware of this, but have you tried to save one of the documents after using a "Document -> Rotate" and before exporting/importing the comments?
Best,
Stefan
"Document -> Rotate pages" and "View -> Rotate View" are separate and it seems from your post that you are aware of this, but have you tried to save one of the documents after using a "Document -> Rotate" and before exporting/importing the comments?
Best,
Stefan
-
jonfklein
- User
- Posts: 3
- Joined: Mon Jan 17, 2011 8:00 am
Re: Orientation of Comments when Importing
Yes, I am aware that "Document -> Rotate pages" and "View -> Rotate View" are different actions.
Also, I have tried saving the first file after performing "Document -> Rotate pages", then exporting the comments, and I have tried saving the second file after performing "Document -> Rotate pages", then importing the comments. But no matter what a try the comments are imported in the same orientation on the second file.
I can't remember exactly which files I was using when I came across this problem a week and a half ago. However, today I was able to duplicate the problem using two different files, and I noticed they have a different page size. The first file has a page size of 42.02x59.41cm the second is 84.10x59.41cm. So perhaps the different page size is somehow causing the problem.
-Jonathan
Also, I have tried saving the first file after performing "Document -> Rotate pages", then exporting the comments, and I have tried saving the second file after performing "Document -> Rotate pages", then importing the comments. But no matter what a try the comments are imported in the same orientation on the second file.
I can't remember exactly which files I was using when I came across this problem a week and a half ago. However, today I was able to duplicate the problem using two different files, and I noticed they have a different page size. The first file has a page size of 42.02x59.41cm the second is 84.10x59.41cm. So perhaps the different page size is somehow causing the problem.
-Jonathan
-
Stefan - PDF-XChange
- Site Admin
- Posts: 19930
- Joined: Mon Jan 12, 2009 8:07 am
Re: Orientation of Comments when Importing
Hello Jonathan,
I did a sample test, and yes it seems that rotating the page has no effect - the whole coordinate system rotates so exporting comment that was e.g. facing upwards in a document before rotation will still be pointing "upwards" in the rotated coordinate system of the document.
The only thing I can think of that will help you to rotate comments for now is to load them in e.g. an empty document, select them (one by one) and copy and paste them in the file where you want them (and don't forget to rotate the target file first).
In Ver3 of the Viewer multiple object selection, and rotation should be available.
Best,
Stefan
I did a sample test, and yes it seems that rotating the page has no effect - the whole coordinate system rotates so exporting comment that was e.g. facing upwards in a document before rotation will still be pointing "upwards" in the rotated coordinate system of the document.
The only thing I can think of that will help you to rotate comments for now is to load them in e.g. an empty document, select them (one by one) and copy and paste them in the file where you want them (and don't forget to rotate the target file first).
In Ver3 of the Viewer multiple object selection, and rotation should be available.
Best,
Stefan
-
jonfklein
- User
- Posts: 3
- Joined: Mon Jan 17, 2011 8:00 am
Re: Orientation of Comments when Importing
Stefan,
I encountered this problem again today and tried to apply the workaround that you suggested - exporting the comments from the first document to a comments file, then importing the comments to a blank document and then copying and pasting them individually to the second document. However, I am experiencing the same problem, when I copy and paste a comment into the second document the comment is still in the wrong orientation.
Here is a bit more information about my situation. The first document is a drawing, A3 size, created in AutoCAD. In AutoCAD it was made in landscape format, so that the long side of the page is at the top. When this drawing was printed from AutoCAD to a PDF file it was printed correctly in landscape format so that the top of the page in AutoCAD coincides with the top of the page in the PDF file. Also, when the comments were created on this document they were written in the same orientation as the words on the drawing - horizontal upright letter - as would be expected.
The second document is also a drawing, A3 size, created in AutoCAD. In AutoCAD it was also made in landcape format. However, and this is the key thing, it appears that when this drawing was printed from AutoCAD to a PDF file it was printed incorrectly as a portrait format document, so that the entire document has been rotated by 90 degrees clockwise in the PDF file. This appears to have moved the top of the page for the PDF file to the left side short of the document. So the top of page for the PDF file is rotated 90 degress to counter-clockwise with repect to the top of page when the document was created in AutoCAD.
Now, it also appears that when a comment is created on the first document, the orientation with respect to the document is associated with that comment. So, when this comment is copied the orientation with respect to the first document is copied along with it. Then when it is pasted into the second document it is oriented according to the top of page of the first document. Since, as you explained, the whole coordinate system rotates when the page is rotated, it is not possible to change the top of page in either the first of second document. Therefore, the comments copied over to the second document will always be in the wrong orientation on the second document.
I don't know what the solution is but I'm sure there is one. Perhaps if the coordinate system was allowed to rotate when the document was rotated this would solve the problem. But I imagine it is far more complicated than this since there might be many implications to allowing the coordinate system to rotate.
-Jonathan Klein
I encountered this problem again today and tried to apply the workaround that you suggested - exporting the comments from the first document to a comments file, then importing the comments to a blank document and then copying and pasting them individually to the second document. However, I am experiencing the same problem, when I copy and paste a comment into the second document the comment is still in the wrong orientation.
Here is a bit more information about my situation. The first document is a drawing, A3 size, created in AutoCAD. In AutoCAD it was made in landscape format, so that the long side of the page is at the top. When this drawing was printed from AutoCAD to a PDF file it was printed correctly in landscape format so that the top of the page in AutoCAD coincides with the top of the page in the PDF file. Also, when the comments were created on this document they were written in the same orientation as the words on the drawing - horizontal upright letter - as would be expected.
The second document is also a drawing, A3 size, created in AutoCAD. In AutoCAD it was also made in landcape format. However, and this is the key thing, it appears that when this drawing was printed from AutoCAD to a PDF file it was printed incorrectly as a portrait format document, so that the entire document has been rotated by 90 degrees clockwise in the PDF file. This appears to have moved the top of the page for the PDF file to the left side short of the document. So the top of page for the PDF file is rotated 90 degress to counter-clockwise with repect to the top of page when the document was created in AutoCAD.
Now, it also appears that when a comment is created on the first document, the orientation with respect to the document is associated with that comment. So, when this comment is copied the orientation with respect to the first document is copied along with it. Then when it is pasted into the second document it is oriented according to the top of page of the first document. Since, as you explained, the whole coordinate system rotates when the page is rotated, it is not possible to change the top of page in either the first of second document. Therefore, the comments copied over to the second document will always be in the wrong orientation on the second document.
I don't know what the solution is but I'm sure there is one. Perhaps if the coordinate system was allowed to rotate when the document was rotated this would solve the problem. But I imagine it is far more complicated than this since there might be many implications to allowing the coordinate system to rotate.
-Jonathan Klein
-
Stefan - PDF-XChange
- Site Admin
- Posts: 19930
- Joined: Mon Jan 12, 2009 8:07 am
Re: Orientation of Comments when Importing
Hello Jonathan,
Apologies, seems I might have misled you a bit in my previous post.
It is possible to create a new comment after you rotate a page, and then it will be oriented according to the rotated coordinates (e.g. a text would be written in vertical direction).
If you then copy and paste that in the new file - it will be rotated compared to it's Coordinate system by the same degree it was in the original file, but as your comments are already there, you can not make them rotated at all.
I did try to check if some JS code would help, but it seems like rotation is only working with free text tool, and not any arbitrary comments like e.g. a line or an arrow.
The devs are working on allowing rotation of objects in our Viewer for ver3, but we do not have a firm release date yet, so it could be some waiting until that is available.
Best,
Stefan
Apologies, seems I might have misled you a bit in my previous post.
It is possible to create a new comment after you rotate a page, and then it will be oriented according to the rotated coordinates (e.g. a text would be written in vertical direction).
If you then copy and paste that in the new file - it will be rotated compared to it's Coordinate system by the same degree it was in the original file, but as your comments are already there, you can not make them rotated at all.
I did try to check if some JS code would help, but it seems like rotation is only working with free text tool, and not any arbitrary comments like e.g. a line or an arrow.
The devs are working on allowing rotation of objects in our Viewer for ver3, but we do not have a firm release date yet, so it could be some waiting until that is available.
Best,
Stefan