# clone method

DocumentImage clone()

Creates a copy of the DocumentImage object.

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

## Implementation

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