# Get-OfficeOpenDocument

Loads a native ODT, ODS, ODP, or ODG document. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

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**

`System.String`

**Outputs**

`OfficeIMO.OpenDocument.OdfDocument` `OfficeIMO.OpenDocument.OdtDocument` `OfficeIMO.OpenDocument.OdsDocument` `OfficeIMO.OpenDocument.OdpPresentation` `OfficeIMO.OpenDocument.OdgDocument`

**Source**

[GetOfficeOpenDocumentCommand.cs:9](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/OpenDocument/GetOfficeOpenDocumentCommand.cs#L9) 

Loads a native ODT, ODS, ODP, or ODG document.

## Syntax

```
Get-OfficeOpenDocument
[-MaxCompressionRatio <Double>]
[-MaxDepth <Int32>]
[-MaxEntries <Int32>]
[-MaxEntryUncompressedBytes <Int64>]
[-MaxPackageBytes <Int64>]
[-MaxTotalKdfIterations <Int64>]
[-MaxTotalUncompressedBytes <Int64>]
[-MaxXmlCharacters <Int64>]
[-MaxXmlDepth <Int32>]
[-Options <OdfLoadOptions>]
[-Password <String>]
[-Path] <String>
[<CommonParameters>]
```

[#](#method-get-officeopendocument-double-int32-int32-int64-int64-int64-int64-int64-int32-odfloadoptions-string-string)

Parameter set: `All Parameter Sets`

## Examples

### Example 1

```powershell
Get-OfficeOpenDocument -Path 'C:\Path'
```

## Parameters

**-MaxCompressionRatio Double optional**

Maximum declared expansion ratio for a compressed entry.

**-MaxDepth Int32 optional**

Maximum archive path depth.

**-MaxEntries Int32 optional**

Maximum number of ZIP entries.

**-MaxEntryUncompressedBytes Int64 optional**

Maximum uncompressed size of one package entry.

**-MaxPackageBytes Int64 optional**

Maximum source package size in bytes.

**-MaxTotalKdfIterations Int64 optional**

Maximum aggregate PBKDF2 iterations across encrypted entries.

**-MaxTotalUncompressedBytes Int64 optional**

Maximum aggregate uncompressed package size.

**-MaxXmlCharacters Int64 optional**

Maximum characters allowed in one parsed XML part.

**-MaxXmlDepth Int32 optional**

Maximum element nesting depth in one parsed XML part.

**-Options OdfLoadOptions optional**

Optional bounded package and XML settings.

**-Password String optional**

Password used to decrypt an encrypted OpenDocument package.

**-Path String requiredposition: 0pipeline: True (ByValue)**

Path to an ODT, ODS, ODP, or ODG file.

## 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:08E898E26050075574FA97E170821B4309B382FD541817663A855921CB9A4428 -->
