Project

PSWriteOffice

PowerShell document automation across Word, Excel, PowerPoint, PDF, Reader, Confluence, Visio, and open text formats.

Stars 159
Forks 14
PowerShell Gallery downloads 158,661
Release v3.0.5
Language: C# Updated: 2026-09-03

API Reference

Cmdlet

Save-OfficeOpenDocument

Namespace PSWriteOffice
Inputs
OfficeIMO.OpenDocument.OdfDocument
Outputs
OfficeIMO.OpenDocument.OdfSaveResult

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

Remarks

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

Examples

Authored help example

EXAMPLE 1


Save-OfficeOpenDocument -Document 'Value'
        

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.

Syntax

Save-OfficeOpenDocument -Document <OdfDocument> [-FailOnLoss] [-Options <OdfSaveOptions>] [-PassThru] -Path <String> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Document OdfDocument requiredposition: namedpipeline: True (ByValue)
OpenDocument model to save.
FailOnLoss SwitchParameter optionalposition: namedpipeline: False
Throw when source entries cannot be preserved losslessly.
Options OdfSaveOptions optionalposition: namedpipeline: False
Optional package save and preservation settings.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the save result, including preservation diagnostics.
Path String requiredposition: 0pipeline: False
Destination path.

Outputs

OfficeIMO.OpenDocument.OdfSaveResult