myDocument.resizeCanvas( [ width ], [ height ], [ anchor ] ) in Photoshop DOM

change the size of the canvas

Arguments

nametypedescription
width Number [optional]
height Number [optional]
anchor AnchorPosition [optional]
Return Type
(none)