Canvas Size
1. Save the current ruler units preference and change it to one you would like to work with. var oldRulerUnits = preferences.rulerUnits; preferences.rulerUnits = Units.PIXELS; For a better understanding of the above code, please read the Setting the Ruler and Type Units tutorial.
read more