Project

PSWriteOffice

PowerShell document automation across Word, Excel, PowerPoint, PDF, Reader, Confluence, Visio, and open text formats.

Stars 159
Forks 14
PowerShell Gallery downloads 158,661
Release v3.0.5
Language: C# Updated: 2026-09-03

API Reference

Cmdlet

ConvertFrom-OfficeOpenDocument

Converts native ODT, ODS, or ODP content to Word, Excel, or PowerPoint with fidelity evidence.

Remarks

Converts native ODT, ODS, or ODP content to Word, Excel, or PowerPoint with fidelity evidence.

Examples

Authored help example

Convert an ODS spreadsheet to Excel.

PS>


$options = New-OfficeExcelOpenDocumentOptions -IncludeBasicStyles -MaximumExpandedCells 250000
            ConvertFrom-OfficeOpenDocument -Path .\Status.ods -OutputPath .\Status.xlsx -ExcelOptions $options
        

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

ConvertFrom-OfficeOpenDocument [-ExcelOptions <ExcelOpenDocumentConversionOptions>] [-FailOnLoss] -OutputPath <String> -Path <String> [-PowerPointOptions <PowerPointOpenDocumentConversionOptions>] [-WordOptions <WordOpenDocumentConversionOptions>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

ExcelOptions ExcelOpenDocumentConversionOptions optionalposition: namedpipeline: False
Optional ODS-to-Excel conversion settings.
FailOnLoss SwitchParameter optionalposition: namedpipeline: False
Throw when the conversion approximates, skips, or cannot map a feature.
OutputPath String requiredposition: 1pipeline: False
Destination DOCX, XLSX, or PPTX path.
Path String requiredposition: 0pipeline: False
Path to an ODT, ODS, or ODP file.
PowerPointOptions PowerPointOpenDocumentConversionOptions optionalposition: namedpipeline: False
Optional ODP-to-PowerPoint conversion settings.
WordOptions WordOpenDocumentConversionOptions optionalposition: namedpipeline: False
Optional ODT-to-Word conversion settings.