# Save-OfficeOpenDocument

Saves a native OpenDocument model with entry-level preservation diagnostics.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.OpenDocument.OdfDocument`

**Outputs**

`OfficeIMO.OpenDocument.OdfSaveResult`

**Source**

[SaveOfficeOpenDocumentCommand.cs:10](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/OpenDocument/SaveOfficeOpenDocumentCommand.cs#L10) 

Saves a native OpenDocument model with entry-level preservation diagnostics.

## Syntax

```
Save-OfficeOpenDocument
-Document <OdfDocument>
[-FailOnLoss]
[-Options <OdfSaveOptions>]
[-PassThru]
[-Path] <String>
[<CommonParameters>]
```

[#](#method-save-officeopendocument-odfdocument-switchparameter-odfsaveoptions-switchparameter-string)

Parameter set: `All Parameter Sets`

## Examples

### Example 1

```powershell
Save-OfficeOpenDocument -Path 'C:\Path' -Document 'Value'
```

## Parameters

**-Document OdfDocument requiredpipeline: True (ByValue)**

OpenDocument model to save.

**-FailOnLoss SwitchParameter optional**

Throw when source entries cannot be preserved losslessly.

**-Options OdfSaveOptions optional**

Optional package save and preservation settings.

**-PassThru SwitchParameter optional**

Emit the save result, including preservation diagnostics.

**-Path String requiredposition: 0**

Destination path.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:01F46DC94C8CE270F4B949792C30CE1ACD920EBC08405CB4A4F2CCC6B5BBB7C0 -->
