# clone method

DetectedDocument clone()

Creates a copy of the DetectedDocument object.

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

## Implementation

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