InDesign has 3 zero points: two in the upper left corner for x and y and second x in upper right corner. When I rotated graphic that is bigger than the artbord, it ocasinally gets confused which x zero to use and rotates the graphic of the artbord. Is there a way to tell it which zero point to use.
Thank you very much for your help.
Switch from page oriented rulers to spread oriented:
app.activeDocument.viewPreferences.rulerOrigin = RulerOrigin.SPREAD_ORIGIN;
Alternatively, you could try the third option (Spine) -- zero at the center and counting down to the left and up to the right. That's easy to handle mirrored layouts with.