Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Get-OfficeDocumentStructured

Module PSWriteOffice
Inputs
System.String
Outputs
OfficeIMO.Reader.OfficeDocumentStructuredExtractionResult

Extracts a bounded schema-friendly view of a supported document.

Syntax

Get-OfficeDocumentStructured [-ExtractionOptions <OfficeDocumentStructuredExtractionOptions>] [-Path] <String> [-Reader <OfficeDocumentReader>] [-ReaderOptions <ReaderOptions>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Authored help example

Extract sections, tables, forms, and scalar records.

$result = Get-OfficeDocumentStructured -Path .\report.docx; $result.Records | Group-Object Category

Returns deterministic structured records and source diagnostics without format-specific parsing.

Parameters

-ExtractionOptions OfficeDocumentStructuredExtractionOptions optional
Optional structured extraction categories and limits.
-Path String requiredposition: 0pipeline: True (ByValue)
Path to read.
-Reader OfficeDocumentReader optional
Optional immutable OfficeIMO reader with caller-configured handlers and processors.
-ReaderOptions ReaderOptions optional
Optional source-reading limits and format behavior.

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.