myDocument.flatten() in Photoshop DOM

flatten all layers in the document

Return Type
(none)