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(kA nchorPointCenterAnchor.value));
oPref.setAnchorPoint(VariableTypeUtils.createEnumeration(kAnchorPointCenterAnchor.value));
The code runs successfully, but doesn't produce any effect on the rotations of images (graphics).