2 Replies Latest reply on Jul 5, 2013 2:50 AM by BEGINNER_X

    Need alert for safety Margin

    BEGINNER_X Level 3

      HI All,


      Could anyone please provide solution for the safety margin alert.


      If any page items near to page width or page height then alert will show or report to produce.


      [safety margin range = 24 points]


      var myDoc = app.activeDocument;

      var myPgItems = app.activeDocument.allPageItems


      doc.viewPreferences.horizontalMeasurementUnits = doc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;

      doc.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;


      var myPageWidth = app.activeDocument.documentPreferences.pageWidth;

      var myPageHeight = app.activeDocument.documentPreferences.pageHeight;



      Could anyone help....