DocumentRecoveryMode Enum
Wordize.Loading.DocumentRecoveryMode enum. Specifies the available recovery options when a document encounters errors during loading.
DocumentRecoveryMode enumeration
Specifies the available recovery options when a document encounters errors during loading.
public enum DocumentRecoveryMode
Values
Name | Value | Description |
---|---|---|
None | 0 | No recovery is attempted. If the document is invalid, loading will fail with an error. |
TryRecover | 1 | Attempts to recover the document while preserving as much data as possible. |
Examples
Shows how to disable document recovery attempts upon loading corrupted document.
LoadOptions loadOptions = new LoadOptions();
loadOptions.RecoveryMode = DocumentRecoveryMode.None;
Converter.Create()
.From(MyDir + "Simple.docx", loadOptions)
.To(ArtifactsDir + "LoadOptions.RecoveryMode.docx")
.Execute();
See Also
- namespace Wordize.Loading
- assembly Wordize