Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Export-OfficePowerPointImage

Module PSWriteOffice
Inputs
OfficeIMO.PowerPoint.PowerPointPresentation
Outputs
OfficeIMO.Drawing.OfficeImageExportResult

Exports presentation slides as PNG or SVG images with one result per slide.

Syntax

Export-OfficePowerPointImage [-Format <OfficeImageExportFormat>] [-Options <PowerPointPresentationImageExportOptions>] [-OutputPath] <String> [-PassThru] [-Path] <String> [<CommonParameters>]
#
Parameter set: Path
Export-OfficePowerPointImage [-Format <OfficeImageExportFormat>] [-Options <PowerPointPresentationImageExportOptions>] [-OutputPath] <String> [-PassThru] -Presentation <PowerPointPresentation> [<CommonParameters>]
#
Parameter set: Presentation

Examples

Authored help example

Export visible slides as SVG files.

Export-OfficePowerPointImage -Path .\Deck.pptx -OutputPath .\Slides -Format Svg

Writes one image per selected slide. Add -PassThru to receive the structured export results.

Parameters

-Format OfficeImageExportFormat optional
Output image format.
Possible values: Png, Svg, Jpeg, Tiff, Webp, Bmp, Pbm, Tga, Icon
-Options PowerPointPresentationImageExportOptions optional
Optional slide selection, size, scale, theme, and rendering settings.
-OutputPath String requiredposition: 1
Destination folder.
-PassThru SwitchParameter optional
Emit one structured image export result per saved slide.
-Path String requiredposition: 0sets: Path
Path to the presentation.
-Presentation PowerPointPresentation requiredpipeline: True (ByValue)sets: Presentation
Open presentation instance.

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.