Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

Stars 654
Forks 82
Open issues 1
Total downloads 4,320,051
Release OfficeIMO-v3.5.3
Language: C# Updated: 2026-11-03
Cmdlet

Add-OfficeWordImage

Aliases: WordImage
Module
PSWriteOffice
Aliases
WordImage
Inputs
None

Inserts an image into the current paragraph.

Syntax

Add-OfficeWordImage
[-Description <String>]
[-Height <Double>]
[-PassThru]
[-Path] <String>
[-Width <Double>]
[-Wrap <WordImageTextWrapping>]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Supports width/height overrides and wrapping options using the alias-friendly DSL.

Examples

Add a logo.

Add-OfficeWordParagraph { Add-OfficeWordImage -Path .\logo.png -Width 96 -Height 32 }

Embeds logo.png at the specified size.

Parameters

-Description String optional
Optional description/alt text.
-Height Double optional
Height in points.
-PassThru SwitchParameter optional
Emit the created WordImage.
-Path String requiredposition: 0
Path to the image file.
-Width Double optional
Width in points.
-Wrap WordImageTextWrapping optional
Wrap mode for the image.
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.