API Reference
Cmdlet
Set-OfficeWordImage
Updates OfficeIMO Word image sizing, wrapping, crop, and metadata.
Remarks
Updates OfficeIMO Word image sizing, wrapping, crop, and metadata.
Examples
Resize and describe all report images.
PS>
$doc = Get-OfficeWord -Path .\Report.docx
$doc |
Get-OfficeWordImage |
Set-OfficeWordImage -Width 320 -Wrap Square -Title 'Report image' -Description 'Image used in the report'
$doc | Save-OfficeWord -Path .\Report-Images.docx
Gets OfficeIMO image objects from an open document, applies thin image metadata and layout updates, and saves the document.
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
Set-OfficeWordImage [-CropBottom <Nullable`1>] [-CropLeft <Nullable`1>] [-CropRight <Nullable`1>] [-CropTop <Nullable`1>] [-Description <String>] [-Height <Nullable`1>] [-Hidden <Nullable`1>] [-HorizontalFlip <Nullable`1>] -Image <WordImage> [-Opacity <Nullable`1>] [-PassThru] [-Rotation <Nullable`1>] [-Title <String>] [-VerticalFlip <Nullable`1>] [-Width <Nullable`1>] [-Wrap <Nullable`1>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- CropBottom Nullable`1
- Bottom crop value.
- CropLeft Nullable`1
- Left crop value.
- CropRight Nullable`1
- Right crop value.
- CropTop Nullable`1
- Top crop value.
- Description String
- Image alternate text metadata.
- Height Nullable`1
- Image height in points.
- Hidden Nullable`1
- Whether the image is hidden.
- HorizontalFlip Nullable`1
- Horizontally flip the image.
- Image WordImage
- Image to update.
- Opacity Nullable`1
- Fixed opacity percentage.
- PassThru SwitchParameter
- Emit the updated image.
- Rotation Nullable`1
- Image rotation in degrees.
- Title String
- Image title metadata.
- VerticalFlip Nullable`1
- Vertically flip the image.
- Width Nullable`1
- Image width in points.
- Wrap Nullable`1
- Text wrapping mode.
Outputs
OfficeIMO.Word.WordImage