Cmdlet
Get-OfficeDocumentStructured
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 SetsExamples
Extract sections, tables, forms, and scalar records.
$result = Get-OfficeDocumentStructured -Path .\report.docx; $result.Records | Group-Object CategoryReturns deterministic structured records and source diagnostics without format-specific parsing.
Parameters
- -ExtractionOptions OfficeDocumentStructuredExtractionOptions
- Optional structured extraction categories and limits.
- -Path String
- Path to read.
- -Reader OfficeDocumentReader
- Optional immutable OfficeIMO reader with caller-configured handlers and processors.
- -ReaderOptions ReaderOptions
- 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.