Document.duplicate

Document duplicate (String name, bool mergeLayersOnly)

Parameters

name The name of the new document.
mergeLayersOnly If ture, duplicates merged layers only.

Description

Creates a duplicate of the document object.