myDocument.mergeVisibleLayers() in Photoshop DOM

flatten all visible layers in the document

Return Type
(none)