# Get-OfficeDocumentAsset

Reads or materializes embedded assets discovered by OfficeIMO.Reader from a supported document.

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 

Aliases: Export-OfficeDocumentAsset, Read-OfficeDocumentAsset

**Module**

`PSWriteOffice`

**Aliases**

`Export-OfficeDocumentAsset` `Read-OfficeDocumentAsset`

**Inputs**

`System.String`

**Outputs**

`OfficeIMO.Reader.OfficeDocumentAsset` `OfficeIMO.Reader.OfficeDocumentMaterializedAsset`

**Source**

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

Reads or materializes embedded assets discovered by OfficeIMO.Reader from a supported document.

## Syntax

```
Get-OfficeDocumentAsset
[-ExcelA1Range <String>]
[-ExcelChunkRows <Int32>]
[-ExcelSheetName <String>]
[-ExcludePowerPointNotes]
[-ExcludeWordFootnotes]
[-Extension <String[]>]
[-Kind <String[]>]
[-MaxChars <Int32>]
[-MaxInputBytes <Int64>]
[-MaxTableRows <Int32>]
[-MediaType <String[]>]
[-NoExcelHeaders]
[-NoHashes]
[-NoMarkdownHeadingChunks]
[-NoOverwrite]
[-OpenXmlMaxCharactersInPart <Int64>]
[-OutputDirectory <String>]
[-Path] <String>
[-Reader <OfficeDocumentReader>]
[-ValidatePayloadHash]
[<CommonParameters>]
```

[#](#member-d2748750a4e52f8cb8bc634b)

Parameter set: `All Parameter Sets`

## Examples

### List embedded assets in a document.

```powershell
Get-OfficeDocumentAsset -Path .\Report.docx |
                Select-Object Id, Kind, MediaType, FileName, LengthBytes
```

Reads the normalized asset metadata emitted by the shared Reader envelope.

### Export document images to a folder.

```powershell
Get-OfficeDocumentAsset -Path .\Deck.pptx -OutputDirectory .\reader-assets -Kind image -ValidatePayloadHash
```

Writes materializable image payloads to deterministic filenames and returns materialization results.

## Parameters

**-ExcelA1Range String optional**

Optional Excel A1 range to read.

**-ExcelChunkRows Int32 optional**

Excel rows per emitted worksheet chunk.

**-ExcelSheetName String optional**

Optional Excel sheet name to read.

**-ExcludePowerPointNotes SwitchParameter optional**

Exclude PowerPoint speaker notes.

**-ExcludeWordFootnotes SwitchParameter optional**

Exclude Word footnotes.

**-Extension String[] optional**

Only include assets with one of these file extensions.

**-Kind String[] optional**

Only include assets with one of these normalized kinds, such as image or preview.

**-MaxChars Int32 optional**

Maximum emitted chunk characters.

**-MaxInputBytes Int64 optional**

Maximum input size in bytes.

**-MaxTableRows Int32 optional**

Maximum table rows per emitted table.

**-MediaType String[] optional**

Only include assets with one of these media types.

**-NoExcelHeaders SwitchParameter optional**

Treat the first Excel row as data instead of headers.

**-NoHashes SwitchParameter optional**

Disable source and chunk hash computation.

**-NoMarkdownHeadingChunks SwitchParameter optional**

Do not split Markdown by headings.

**-NoOverwrite SwitchParameter optional**

Do not overwrite existing payload files when -OutputDirectory is used.

**-OpenXmlMaxCharactersInPart Int64 optional**

OpenXML maximum characters per part.

**-OutputDirectory String optional**

Optional directory where materializable asset payloads should be written.

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

File path to read.

**-Reader OfficeDocumentReader optional**

Optional immutable OfficeIMO reader with caller-configured handlers and processors.

**-ValidatePayloadHash SwitchParameter optional**

Validate payload hashes before writing assets when hash metadata is present.

## 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:CC3EE5F8326D6920C915C417CFBBBAA64698FC374EBBB8993A6B5D0C786C6C64 -->
