USAGE
1. define document width and height
var docHeight = "1024.000000"; var docWidth = "1024.000000"; CropDocument()
2. then run the crop ( canvas size)
CropDocument()
NOTE :
This function only Change the Canvas Size, to apply the crop , all layers must to be Rasterized instead of being smart Objects Layers.
Related Topics
RasterizeLayer()
RasterizeAllLayers()