Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Save-OfficeOpenDocument

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

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

Syntax

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

Examples

Authored help example

EXAMPLE 1

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.