7 Replies Latest reply on Apr 17, 2014 3:35 PM by Larry G. Schneider

    Alert Document Size

    creativejoan0425 Level 1

      I use CS6

       

      my Script is below:

       

      var width = app.activeDocument.documentPreferences.pageWidth;

      var height = app.activeDocument.documentPreferences.pageHeight;

      alert("Paper Size: " + width + "mm x " + height+ "mm");

       

      but I found if I use A4 size 210 x 297

      it will alert 209.999999999936 x 296.9999999461

       

      if I use custom size, e.g. 230x 230

      it will alert right size

       

      is it CS6 bug?