Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Server Developers
Viewing all articles
Browse latest Browse all 20709

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

$
0
0

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).


Viewing all articles
Browse latest Browse all 20709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>