Cmdlet
Add-OfficeWordImage
Embeds an image file, SVG or reusable visual in a Word paragraph.
Syntax
Add-OfficeWordImage
[-Description <String>]
[-Height <OfficeLength>]
[-Paragraph <WordParagraph>]
[-PassThru]
[-Path] <String>
[-Title <String>]
[-Width <OfficeLength>]
[-Wrap <WordImageTextWrapping>]
[<CommonParameters>]#Parameter set:
PathAdd-OfficeWordImage
[-Description <String>]
[-Height <OfficeLength>]
[-Id <String>]
-InputObject <Object>
[-MaximumSvgElements <Int32>]
[-MaximumSvgViewportDimension <Double>]
[-MaximumSvgViewportPixelCount <Int64>]
[-Paragraph <WordParagraph>]
[-PassThru]
[-PointsPerPixel <Double>]
[-SvgPolicy <PreserveVector| RasterizeWhenNeeded| RequireVector>]
[-Title <String>]
[-Width <OfficeLength>]
[-Wrap <WordImageTextWrapping>]
[<CommonParameters>]#Parameter set:
VisualDescription
Numbers mean points; unit suffixes such as 4cm are accepted. A prepared visual is reused without changing its payload or metadata. One dimension preserves proportions; two dimensions set the displayed frame.
Examples
Insert a local logo.
WordParagraph { WordImage -Path ./logo.png -Width 4cm -Description 'Contoso' }Place a reusable visual in an existing paragraph.
$visual | WordImage -Paragraph $paragraph -Width 12cm -Title 'Availability' -PassThruParameters
- -Description String
- Accessible image description; omitted visual descriptions are retained.
- -Height OfficeLength
- Optional output height; numbers mean points and unit suffixes are accepted.
- -Paragraph WordParagraph
- Target paragraph; the current DSL paragraph is used when omitted.
- -PassThru SwitchParameter
- Return the native editable WordImage.
- -Path String
- Literal local image path.
- -Title String
- Optional title for an SVG file input.
- -Width OfficeLength
- Optional output width; numbers mean points and unit suffixes are accepted.
- -Wrap WordImageTextWrapping
- Text wrapping around the embedded image.
- Possible values:
InLineWithText,Square,Tight,Through,TopAndBottom,BehindText,InFrontOfText - -Id String
- Optional stable identifier for an SVG file input.
- -InputObject Object
- ChartForgeX artifact, OfficeVisualSource, prepared visual or SVG path.
- -MaximumSvgElements Int32
- Optional OfficeIMO SVG import element limit.
- -MaximumSvgViewportDimension Double
- Optional maximum SVG viewport width or height. Increase the safe default only for trusted input.
- -MaximumSvgViewportPixelCount Int64
- Optional maximum SVG viewport area in pixels. Increase the safe default only for trusted input.
- -PointsPerPixel Double
- Conversion factor from ChartForgeX pixels to Office points.
- -SvgPolicy OfficeVisualSvgPolicy
- SVG fidelity policy used by OfficeIMO.ChartForgeX.
- Possible values:
PreserveVector,RasterizeWhenNeeded,RequireVector
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.