API Reference
ConvertTo-OfficeOpenDocument
Converts Word, Excel, or PowerPoint content to native OpenDocument with fidelity evidence.
Remarks
Converts Word, Excel, or PowerPoint content to native OpenDocument with fidelity evidence.
Examples
Convert Word to ODT and reject lossy conversion.
PS>
$options = New-OfficeWordOpenDocumentOptions -IncludeImages -IncludeHeadersAndFooters
ConvertTo-OfficeOpenDocument -Path .\Report.docx -OutputPath .\Report.odt -WordOptions $options -FailOnLoss
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
ConvertTo-OfficeOpenDocument [-ExcelOptions <ExcelOpenDocumentConversionOptions>] [-FailOnLoss] -OutputPath <String> -Path <String> [-PowerPointOptions <PowerPointOpenDocumentConversionOptions>] [-WordOptions <WordOpenDocumentConversionOptions>] [<CommonParameters>]#PathParameters
- 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.
Outputs
OfficeIMO.OpenDocument.OdfConversionResult[OfficeIMO.OpenDocument.OdtDocument], OfficeIMO.OpenDocument.OdfConversionResult[OfficeIMO.OpenDocument.OdsDocument], OfficeIMO.OpenDocument.OdfConversionResult[OfficeIMO.OpenDocument.OdpPresentation]
ConvertTo-OfficeOpenDocument [-ExcelOptions <ExcelOpenDocumentConversionOptions>] [-FailOnLoss] -OutputPath <String> [-PowerPointOptions <PowerPointOpenDocumentConversionOptions>] -WordDocument <WordDocument> [-WordOptions <WordOpenDocumentConversionOptions>] [<CommonParameters>]#WordParameters
- 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.
- PowerPointOptions PowerPointOpenDocumentConversionOptions
- Optional PowerPoint-to-ODP conversion settings.
- WordDocument WordDocument
- Open Word document.
- WordOptions WordOpenDocumentConversionOptions
- Optional Word-to-ODT conversion settings.
Outputs
OfficeIMO.OpenDocument.OdfConversionResult[OfficeIMO.OpenDocument.OdtDocument], OfficeIMO.OpenDocument.OdfConversionResult[OfficeIMO.OpenDocument.OdsDocument], OfficeIMO.OpenDocument.OdfConversionResult[OfficeIMO.OpenDocument.OdpPresentation]
ConvertTo-OfficeOpenDocument -ExcelDocument <ExcelDocument> [-ExcelOptions <ExcelOpenDocumentConversionOptions>] [-FailOnLoss] -OutputPath <String> [-PowerPointOptions <PowerPointOpenDocumentConversionOptions>] [-WordOptions <WordOpenDocumentConversionOptions>] [<CommonParameters>]#ExcelParameters
- ExcelDocument ExcelDocument
- Open Excel workbook.
- 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.
- PowerPointOptions PowerPointOpenDocumentConversionOptions
- Optional PowerPoint-to-ODP conversion settings.
- WordOptions WordOpenDocumentConversionOptions
- Optional Word-to-ODT conversion settings.
Outputs
OfficeIMO.OpenDocument.OdfConversionResult[OfficeIMO.OpenDocument.OdtDocument], OfficeIMO.OpenDocument.OdfConversionResult[OfficeIMO.OpenDocument.OdsDocument], OfficeIMO.OpenDocument.OdfConversionResult[OfficeIMO.OpenDocument.OdpPresentation]
ConvertTo-OfficeOpenDocument [-ExcelOptions <ExcelOpenDocumentConversionOptions>] [-FailOnLoss] -OutputPath <String> [-PowerPointOptions <PowerPointOpenDocumentConversionOptions>] -PowerPointPresentation <PowerPointPresentation> [-WordOptions <WordOpenDocumentConversionOptions>] [<CommonParameters>]#PowerPointParameters
- 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.
- PowerPointOptions PowerPointOpenDocumentConversionOptions
- Optional PowerPoint-to-ODP conversion settings.
- PowerPointPresentation PowerPointPresentation
- Open PowerPoint presentation.
- WordOptions WordOpenDocumentConversionOptions
- Optional Word-to-ODT conversion settings.
Outputs
OfficeIMO.OpenDocument.OdfConversionResult[OfficeIMO.OpenDocument.OdtDocument], OfficeIMO.OpenDocument.OdfConversionResult[OfficeIMO.OpenDocument.OdsDocument], OfficeIMO.OpenDocument.OdfConversionResult[OfficeIMO.OpenDocument.OdpPresentation]