Cmdlet
Set-OfficeWordImage
Updates OfficeIMO Word image sizing, wrapping, crop, and metadata.
Syntax
Set-OfficeWordImage
[-CropBottom <Int32>]
[-CropLeft <Int32>]
[-CropRight <Int32>]
[-CropTop <Int32>]
[-Description <String>]
[-Height <Double>]
[-Hidden <Boolean>]
[-HorizontalFlip <Boolean>]
[-Image] <WordImage>
[-Opacity <Int32>]
[-PassThru]
[-Rotation <Int32>]
[-Title <String>]
[-VerticalFlip <Boolean>]
[-Width <Double>]
[-Wrap <WordImageTextWrapping>]
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Resize and describe all report images.
$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.docxGets OfficeIMO image objects from an open document, applies thin image metadata and layout updates, and saves the document.
Parameters
- -CropBottom Int32
- Bottom crop value.
- -CropLeft Int32
- Left crop value.
- -CropRight Int32
- Right crop value.
- -CropTop Int32
- Top crop value.
- -Description String
- Image alternate text metadata.
- -Height Double
- Image height in points.
- Whether the image is hidden.
- -HorizontalFlip Boolean
- Horizontally flip the image.
- -Image WordImage
- Image to update.
- -Opacity Int32
- Fixed opacity percentage.
- -PassThru SwitchParameter
- Emit the updated image.
- -Rotation Int32
- Image rotation in degrees.
- -Title String
- Image title metadata.
- -VerticalFlip Boolean
- Vertically flip the image.
- -Width Double
- Image width in points.
- -Wrap WordImageTextWrapping
- Text wrapping mode.
- Possible values:
InLineWithText,Square,Tight,Through,TopAndBottom,BehindText,InFrontOfText
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.