Cmdlet
Get-OfficeWordImage
Gets images from a Word document, section, or paragraph.
Syntax
Get-OfficeWordImage
[-Path] <String>
[<CommonParameters>]#Parameter set:
PathGet-OfficeWordImage
-Document <WordDocument>
[<CommonParameters>]#Parameter set:
DocumentGet-OfficeWordImage
-Section <WordSection>
[<CommonParameters>]#Parameter set:
SectionGet-OfficeWordImage
-Paragraph <WordParagraph>
[<CommonParameters>]#Parameter set:
ParagraphExamples
List images and their accessibility metadata.
$images = Get-OfficeWordImage -Path .\Report.docx
$images |
Select-Object -Property Title, Description, Width, Height |
Format-Table -AutoSizeReads images from a document so metadata and sizing can be reviewed before publication.
Parameters
- -Path String
- Path to the document.
- -Document WordDocument
- Document to inspect.
- -Section WordSection
- Section to inspect.
- -Paragraph WordParagraph
- Paragraph 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.