0 Replies Latest reply on Jun 23, 2011 12:51 AM by Alex OUDIN

    [CS5 Java Corba] How to redefine the application (or document) reference point?

    Alex OUDIN

      Hello,

       

      We need to be able to change the reference point of the application (or document - we don't know) to point to the centered anchor point (in order to apply rotation from the center as it was by default in CS4).

       

      // object "oApp" is the InDesign server "Application"

      ChangeObjectPreference oPref = ChangeObjectPreferenceHelper.narrow(oApp.getChangeObjectPreferences().asObject());

      oPref.setPositionReferencePoint(VariableTypeUtils.createEnumeration(kAnchorPointCenterAnch or.value));
      oPref.setAnchorPoint(VariableTypeUtils.createEnumeration(
      kAnchorPointCenterAnchor.value));

       

      The code runs successfully, but doesn't produce any effect on the rotations of images (graphics).