Cmdlet
Save-OfficeOpenDocument
Saves a native OpenDocument model with entry-level preservation diagnostics.
Syntax
Save-OfficeOpenDocument
-Document <OdfDocument>
[-FailOnLoss]
[-Options <OdfSaveOptions>]
[-PassThru]
[[-Path] <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]#Parameter set:
DocumentExamples
Save a live document to its associated destination.
$document = New-OfficeOpenDocument -Path ./Proposal.odt
Save-OfficeOpenDocument -Document $documentParameters
- -Document OdfDocument
- OpenDocument model to save.
- -FailOnLoss SwitchParameter
- Throw when source entries cannot be preserved losslessly.
- -Options OdfSaveOptions
- Optional package save and preservation settings.
- -PassThru SwitchParameter
- Emit the save result, including preservation diagnostics.
- -Path String
- Destination path; defaults to the document's associated save path.
- -WhatIf SwitchParameter
- Shows what would happen if the command runs.
- -Confirm SwitchParameter
- Prompts for confirmation before running the command.
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.