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
EXAMPLE 1
ConvertTo-OfficeOpenDocument -Path 'C:\Path'
EXAMPLE 2
ConvertTo-OfficeOpenDocument -ExcelDocument 'Value'
EXAMPLE 3
ConvertTo-OfficeOpenDocument -PowerPointPresentation '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
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`1[[OfficeIMO.OpenDocument.OdtDocument, OfficeIMO.OpenDocument, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null]] OfficeIMO.OpenDocument.OdfConversionResult`1[[OfficeIMO.OpenDocument.OdsDocument, OfficeIMO.OpenDocument, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null]] OfficeIMO.OpenDocument.OdfConversionResult`1[[OfficeIMO.OpenDocument.OdpPresentation, OfficeIMO.OpenDocument, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null]]
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`1[[OfficeIMO.OpenDocument.OdtDocument, OfficeIMO.OpenDocument, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null]] OfficeIMO.OpenDocument.OdfConversionResult`1[[OfficeIMO.OpenDocument.OdsDocument, OfficeIMO.OpenDocument, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null]] OfficeIMO.OpenDocument.OdfConversionResult`1[[OfficeIMO.OpenDocument.OdpPresentation, OfficeIMO.OpenDocument, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null]]
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`1[[OfficeIMO.OpenDocument.OdtDocument, OfficeIMO.OpenDocument, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null]] OfficeIMO.OpenDocument.OdfConversionResult`1[[OfficeIMO.OpenDocument.OdsDocument, OfficeIMO.OpenDocument, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null]] OfficeIMO.OpenDocument.OdfConversionResult`1[[OfficeIMO.OpenDocument.OdpPresentation, OfficeIMO.OpenDocument, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null]]
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`1[[OfficeIMO.OpenDocument.OdtDocument, OfficeIMO.OpenDocument, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null]] OfficeIMO.OpenDocument.OdfConversionResult`1[[OfficeIMO.OpenDocument.OdsDocument, OfficeIMO.OpenDocument, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null]] OfficeIMO.OpenDocument.OdfConversionResult`1[[OfficeIMO.OpenDocument.OdpPresentation, OfficeIMO.OpenDocument, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null]]