# clone method

DocumentInfo clone()

Creates a copy of the DocumentInfo object.

return The newly created DocumentInfo object. throws DocumentException An error has occurred during Document Library execution.

## Implementation

    DocumentInfo clone() {
      DocumentInfo clone = DocumentInfo();
      var err = documentSDK.id3DocumentInfo_CopyTo(_pHandle.value, clone.handle);
      if (err != DocumentError.success.value) {
        throw DocumentException(err);
      }
      return clone;
    }