# ConvertTo-OfficeOpenDocument

Converts Word, Excel, or PowerPoint content to native OpenDocument with fidelity evidence.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Excel.ExcelDocument` `OfficeIMO.PowerPoint.PowerPointPresentation` `OfficeIMO.Word.WordDocument`

**Outputs**

`OfficeIMO.OpenDocument.OdfConversionResult[OfficeIMO.OpenDocument.OdtDocument]` `OfficeIMO.OpenDocument.OdfConversionResult[OfficeIMO.OpenDocument.OdsDocument]` `OfficeIMO.OpenDocument.OdfConversionResult[OfficeIMO.OpenDocument.OdpPresentation]`

**Source**

[ConvertToOfficeOpenDocumentCommand.cs:26](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/OpenDocument/ConvertToOfficeOpenDocumentCommand.cs#L26) 

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>]
```

[#](#method-convertto-officeopendocument-excelopendocumentconversionoptions-switchparameter-string-string-powerpointopendocumentconversionoptions-wordopendocumentconversionoptions)

Parameter set: `Path`

```
ConvertTo-OfficeOpenDocument
[-ExcelOptions <ExcelOpenDocumentConversionOptions>]
[-FailOnLoss]
[-OutputPath] <String>
[-PowerPointOptions <PowerPointOpenDocumentConversionOptions>]
-WordDocument <WordDocument>
[-WordOptions <WordOpenDocumentConversionOptions>]
[<CommonParameters>]
```

[#](#method-convertto-officeopendocument-excelopendocumentconversionoptions-switchparameter-string-powerpointopendocumentconversionoptions-worddocument-wordopendocumentconversionoptions)

Parameter set: `Word`

```
ConvertTo-OfficeOpenDocument
-ExcelDocument <ExcelDocument>
[-ExcelOptions <ExcelOpenDocumentConversionOptions>]
[-FailOnLoss]
[-OutputPath] <String>
[-PowerPointOptions <PowerPointOpenDocumentConversionOptions>]
[-WordOptions <WordOpenDocumentConversionOptions>]
[<CommonParameters>]
```

[#](#method-convertto-officeopendocument-exceldocument-excelopendocumentconversionoptions-switchparameter-string-powerpointopendocumentconversionoptions-wordopendocumentconversionoptions)

Parameter set: `Excel`

```
ConvertTo-OfficeOpenDocument
[-ExcelOptions <ExcelOpenDocumentConversionOptions>]
[-FailOnLoss]
[-OutputPath] <String>
[-PowerPointOptions <PowerPointOpenDocumentConversionOptions>]
-PowerPointPresentation <PowerPointPresentation>
[-WordOptions <WordOpenDocumentConversionOptions>]
[<CommonParameters>]
```

[#](#method-convertto-officeopendocument-excelopendocumentconversionoptions-switchparameter-string-powerpointopendocumentconversionoptions-powerpointpresentation-wordopendocumentconversionoptions)

Parameter set: `PowerPoint`

## Examples

### Convert Word to ODT and reject lossy conversion.

```powershell
$options = New-OfficeWordOpenDocumentOptions -IncludeImages -IncludeHeadersAndFooters
ConvertTo-OfficeOpenDocument -Path .\Report.docx -OutputPath .\Report.odt -WordOptions $options -FailOnLoss
```

## Parameters

**-ExcelOptions ExcelOpenDocumentConversionOptions optional**

Optional Excel-to-ODS conversion settings.

**-FailOnLoss SwitchParameter optional**

Throw when the conversion approximates, skips, or cannot map a feature.

**-OutputPath String requiredposition: 1**

Destination ODT, ODS, or ODP path.

**-Path String requiredposition: 0sets: Path**

Path to a DOCX, XLSX, or PPTX file.

**-PowerPointOptions PowerPointOpenDocumentConversionOptions optional**

Optional PowerPoint-to-ODP conversion settings.

**-WordOptions WordOpenDocumentConversionOptions optional**

Optional Word-to-ODT conversion settings.

**-WordDocument WordDocument requiredpipeline: True (ByValue)sets: Word**

Open Word document.

**-ExcelDocument ExcelDocument requiredpipeline: True (ByValue)sets: Excel**

Open Excel workbook.

**-PowerPointPresentation PowerPointPresentation requiredpipeline: True (ByValue)sets: PowerPoint**

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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:6439E490F0CAC53FE243CE97A2416FEB2A92D3C5D3C54F21DD60EA43F459E5F5 -->
