API Reference
Cmdlet
Get-OfficeDocumentStructured
Extracts a bounded schema-friendly view of a supported document.
Remarks
Extracts a bounded schema-friendly view of a supported document.
Examples
Extract sections, tables, forms, and scalar records.
PS>
$result = Get-OfficeDocumentStructured -Path .\report.docx; $result.Records | Group-Object Category
Returns deterministic structured records and source diagnostics without format-specific parsing.
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
Get-OfficeDocumentStructured [-ExtractionOptions <OfficeDocumentStructuredExtractionOptions>] -Path <String> [-Reader <OfficeDocumentReader>] [-ReaderOptions <ReaderOptions>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- ExtractionOptions OfficeDocumentStructuredExtractionOptions
- Optional structured extraction categories and limits.
- Path String
- Path to read.
- Reader OfficeDocumentReader
- ReaderOptions ReaderOptions
- Optional source-reading limits and format behavior.
Outputs
OfficeIMO.Reader.OfficeDocumentStructuredExtractionResult