Cmdlet
ConvertTo-OfficeOpenDocument
Converts Word, Excel, or PowerPoint content to native OpenDocument with fidelity evidence.
Syntax
ConvertTo-OfficeOpenDocument [-ExcelOptions <ExcelOpenDocumentConversionOptions>] [-FailOnLoss] [-OutputPath] <String> [-Path] <String> [-PowerPointOptions <PowerPointOpenDocumentConversionOptions>] [-WordOptions <WordOpenDocumentConversionOptions>] [<CommonParameters>]#Parameter set:
PathConvertTo-OfficeOpenDocument [-ExcelOptions <ExcelOpenDocumentConversionOptions>] [-FailOnLoss] [-OutputPath] <String> [-PowerPointOptions <PowerPointOpenDocumentConversionOptions>] -WordDocument <WordDocument> [-WordOptions <WordOpenDocumentConversionOptions>] [<CommonParameters>]#Parameter set:
WordConvertTo-OfficeOpenDocument -ExcelDocument <ExcelDocument> [-ExcelOptions <ExcelOpenDocumentConversionOptions>] [-FailOnLoss] [-OutputPath] <String> [-PowerPointOptions <PowerPointOpenDocumentConversionOptions>] [-WordOptions <WordOpenDocumentConversionOptions>] [<CommonParameters>]#Parameter set:
ExcelConvertTo-OfficeOpenDocument [-ExcelOptions <ExcelOpenDocumentConversionOptions>] [-FailOnLoss] [-OutputPath] <String> [-PowerPointOptions <PowerPointOpenDocumentConversionOptions>] -PowerPointPresentation <PowerPointPresentation> [-WordOptions <WordOpenDocumentConversionOptions>] [<CommonParameters>]#Parameter set:
PowerPointExamples
Convert Word to ODT and reject lossy conversion.
$options = New-OfficeWordOpenDocumentOptions -IncludeImages -IncludeHeadersAndFooters
ConvertTo-OfficeOpenDocument -Path .\Report.docx -OutputPath .\Report.odt -WordOptions $options -FailOnLossParameters
- -ExcelOptions ExcelOpenDocumentConversionOptions
- Optional Excel-to-ODS conversion settings.
- -FailOnLoss SwitchParameter
- Throw when the conversion approximates, skips, or cannot map a feature.
- -OutputPath String
- Destination ODT, ODS, or ODP path.
- -Path String
- Path to a DOCX, XLSX, or PPTX file.
- -PowerPointOptions PowerPointOpenDocumentConversionOptions
- Optional PowerPoint-to-ODP conversion settings.
- -WordOptions WordOpenDocumentConversionOptions
- Optional Word-to-ODT conversion settings.
- -WordDocument WordDocument
- Open Word document.
- -ExcelDocument ExcelDocument
- Open Excel workbook.
- -PowerPointPresentation PowerPointPresentation
- Open PowerPoint presentation.
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.