5 Replies Latest reply on Jun 9, 2015 9:41 AM by Pradeep Shan

    I changed page size using js but it doesn't updated in Document setup in mac plz help

    pradeepshan Level 1

      Hi,

       

      i created small script for resizing page with 1inch of width and height with center origin it works but the prob is page size doesn't updated in document setup... i tried the same file with pc it works the problem occurs only in mac please help me

       

      var myDocument = app.activeDocument;
      myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.inches;
      myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.inches;
      var myPages = myDocument.pages;
      for(var myCounter = 0; myCounter < myPages.length; myCounter ++){
              myPagesItem = myPages.item(myCounter);
      myPages.item(myCounter).resize(CoordinateSpaces.INNER_COORDINATES,AnchorPoint.CENTER_ANCHOR,ResizeMethods.ADDING_CURRENT_DIMENSIONS_TO,[72,72]);
      }