문제

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.

도움이 되었습니까?

해결책

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;

  }

}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top