Cmdlet
Add-OfficePowerPointImage
Adds a native picture from a local image, SVG or reusable visual, using the slide layout or explicit lengths.
Syntax
Add-OfficePowerPointImage
[-AlternativeText <String>]
[-Column <Int32>]
[-FocalPoint <PowerPointFocalPoint>]
[-Height <OfficeLength>]
[-PassThru]
[-Path] <String>
[-Slide <PowerPointSlideSelector>]
[-Span <Int32>]
[-Title <String>]
[-Width <OfficeLength>]
[-X <OfficeLength>]
[-Y <OfficeLength>]
[<CommonParameters>]#Parameter set:
PathAdd-OfficePowerPointImage
[-AlternativeText <String>]
[-Column <Int32>]
[-FocalPoint <PowerPointFocalPoint>]
[-Height <OfficeLength>]
[-Id <String>]
-InputObject <Object>
[-MaximumSvgElements <Int32>]
[-MaximumSvgViewportDimension <Double>]
[-MaximumSvgViewportPixelCount <Int64>]
[-PassThru]
[-PointsPerPixel <Double>]
[-Slide <PowerPointSlideSelector>]
[-Span <Int32>]
[-SvgPolicy <PreserveVector| RasterizeWhenNeeded| RequireVector>]
[-Title <String>]
[-Width <OfficeLength>]
[-X <OfficeLength>]
[-Y <OfficeLength>]
[<CommonParameters>]#Parameter set:
VisualDescription
Coordinates use points or unit suffixes. Explicit coordinates, dimensions, grid columns or Slide select fixed placement. Otherwise the image flows through the shared slide layout. FocalPoint controls cover crops.
Examples
Place a local image on the slide grid.
PowerPointSlide -Title 'Evidence' {
PowerPointImage -Path ./evidence.png -Column 2 -Span 5 -Y 3cm -Height 5cm -AlternativeText 'Deployment health'
}Reuse a converted visual without converting it again.
$visual | PowerPointImage -Slide $slide -X 36 -Y 54 -PassThruParameters
- -AlternativeText String
- Accessible description for the visual or placed image.
- -Column Int32
- One-based starting column in the native twelve-column slide grid.
- -FocalPoint PowerPointFocalPoint
- Center, Top, Bottom, Left, Right or fractional x,y coordinates kept in view by a cover crop.
- -Height OfficeLength
- Optional output height; numbers mean points and unit suffixes are accepted.
- -PassThru SwitchParameter
- Return the native editable picture.
- -Path String
- Literal local image path.
- -Slide PowerPointSlideSelector
- Native slide or a one-based position in the current document; omitted inside PowerPointSlide.
- -Span Int32
- Number of grid columns occupied by the frame; defaults to twelve with Column.
- -Title String
- Optional title for an SVG file input.
- -Width OfficeLength
- Optional output width; numbers mean points and unit suffixes are accepted.
- -X OfficeLength
- Left position; numbers mean points.
- -Y OfficeLength
- Top position; numbers mean points.
- -Id String
- Optional stable identifier for an SVG file input.
- -InputObject Object
- Visual artifact, OfficeVisualSource, prepared conversion 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.