# WordSaveOptions

Optional behaviors applied during Word document save operations.

Class 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Source revision**

`90fbca630045` with working tree changes

**Source**

[WordSaveOptions.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Word/WordSaveOptions.cs#L11)

**Modifiers**

sealed

Optional behaviors applied during Word document save operations.

## Inheritance

- object
- WordSaveOptions

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Protect and Encrypt Word Documents](/docs/word/protection/) Guide
  
  Restrict editing of DOCX files to read-only, comments, tracked changes or forms, mark them final, and encrypt or open them with a password in .NET.
- [Remove hidden data and metadata](/docs/before-sharing/hidden-data/) Guide
  
  Inspect and remove properties, comments, tracked changes, hidden content, notes, attachments, scripts and GPS data from Office, PDF, EPUB and image files.

## Usage

Explore 8 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Property [WordSaveOptions.Default](/api/word/officeimo-word-wordsaveoptions/#property-default)

### Accepted by parameters 7

- Method [WordDocument.AssessLegacyDocWrite](/api/word/officeimo-word-worddocument/#method-assesslegacydocwrite-officeimo-word-wordsaveoptions) parameter `options`
- Method [WordDocument.ExportFlatOpc](/api/word/officeimo-word-worddocument/#method-exportflatopc-officeimo-word-wordsaveoptions) parameter `options`
- Method [WordDocument.Save](/api/word/officeimo-word-worddocument/#method-save-officeimo-word-wordsaveoptions) parameter `options`
- Method [WordDocument.SaveAsync](/api/word/officeimo-word-worddocument/#method-saveasync-officeimo-word-wordsaveoptions-threading-cancellationtoken) parameter `options`
- Method [WordDocument.SaveCopy](/api/word/officeimo-word-worddocument/#method-savecopy-string-officeimo-word-wordsaveoptions) parameter `options`
- Method [WordDocument.SaveCopyAsync](/api/word/officeimo-word-worddocument/#method-savecopyasync-string-officeimo-word-wordsaveoptions-threading-cancellationtoken) parameter `options`
- Method [WordDocument.ToBytes](/api/word/officeimo-word-worddocument/#method-tobytes-officeimo-word-wordsaveoptions) parameter `options`

Filter members 

Show inherited

## Constructors

`public WordSaveOptions()` [#](#constructor-ctor)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public bool AllowLoss { get; set; }` [#](#property-allowloss)

[WordSaveOptions.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Word/WordSaveOptions.cs#L11)

Controls saves of documents projected from legacy DOC files when known legacy-only content cannot be represented by the selected output format. The default blocks the save.

`public WordFileFormat Format { get; set; }` [#](#property-format)

[WordSaveOptions.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Word/WordSaveOptions.cs#L19)

Physical DOCX or DOC format for streams and byte output. Paths select their native format by extension.

`public string? Password { get; set; }` [#](#property-password)

[WordSaveOptions.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Word/WordSaveOptions.cs#L25)

Output password. An explicitly assigned null removes encryption; an unset value preserves loaded encryption.

`public OfficeSignatureMutationPolicy SignatureMutationPolicy { get; set; }` [#](#property-signaturemutationpolicy)

[WordSaveOptions.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Word/WordSaveOptions.cs#L34)

Gets or sets how saving handles digital signatures that rewriting the document would invalidate. The default blocks the save.

`public static WordSaveOptions Default { get; }` [#](#property-default)

[WordSaveOptions.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Word/WordSaveOptions.cs#L39)

Returns an options instance with default save behavior.

<!-- PowerForge markdown artifact sha256:2F7F925C5B5EC7928D7B2D5A71B67D67926DAE321E19C2D5B1FF5DCF2776EE85 -->
