API Reference
Cmdlet
Get-OfficeWordImage
Gets images from a Word document, section, or paragraph.
Remarks
Gets images from a Word document, section, or paragraph.
Examples
List images and their accessibility metadata.
PS>
$images = Get-OfficeWordImage -Path .\Report.docx
$images |
Select-Object -Property Title, Description, Width, Height |
Format-Table -AutoSize
Reads images from a document so metadata and sizing can be reviewed before publication.
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-OfficeWordImage -InputPath <String> [<CommonParameters>]#Parameter set:
PathParameters
- InputPath String
- Path to the document.
Outputs
OfficeIMO.Word.WordImage
Get-OfficeWordImage -Document <WordDocument> [<CommonParameters>]#Parameter set:
DocumentParameters
- Document WordDocument
- Document to inspect.
Outputs
OfficeIMO.Word.WordImage
Get-OfficeWordImage -Section <WordSection> [<CommonParameters>]#Parameter set:
SectionParameters
- Section WordSection
- Section to inspect.
Outputs
OfficeIMO.Word.WordImage
Get-OfficeWordImage -Paragraph <WordParagraph> [<CommonParameters>]#Parameter set:
ParagraphParameters
- Paragraph WordParagraph
- Paragraph to inspect.
Outputs
OfficeIMO.Word.WordImage