Question

I wonder if it is possible to get the rotate value from an ImageElement in an InDesign element with a custom script? I am new to InDesign server scripting, but have start learning if this is possible.

Was it helpful?

Solution

Hope this helps... This gets all images rotation Angle.

var pageItems = app.activeWindow.activePage.allPageItems;
var itemsCount = pageItems.length;

for(var i=0; i<itemsCount; i++)
{
  if(pageItems[i] instanceof Image)
  {
    var graphic = pageItems[i];

    var rotation = graphic.rotationAngle;

  }

}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top