Cmdlet
Get-OfficeWordStatistics
Gets document statistics from a Word document.
Syntax
Description
Returns a PowerShell-friendly snapshot of OfficeIMO.Word statistics for quick reporting and validation.
Examples
Check document complexity before publishing.
$stats = Get-OfficeWordStatistics -Path .\Report.docx
$stats |
Select-Object -Property Paragraphs, Tables, Images, Charts |
Format-ListReads OfficeIMO.Word statistics and displays the structural counts that matter for a release artifact.
Parameters
- -Path String
- Path to the Word document.
- -Document WordDocument
- Document to inspect.
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.
Outputs
PSWriteOffice.Models.Word.WordDocumentStatisticsInfo: PowerShell-friendly snapshot of Word document statistics.