API Reference

Cmdlet

Save-OfficePowerPoint

Namespace PSWriteOffice
Inputs
OfficeIMO.PowerPoint.PowerPointPresentation

Saves a presentation to disk.

Remarks

Invokes the PowerPoint service to persist the document and optionally launch it.

Examples

Authored help example

Example 1: Save and open the deck.

PS>


$ppt = New-OfficePowerPoint -FilePath .\Examples\Documents\PowerPointSave.pptx
            $slide = Add-OfficePowerPointSlide -Presentation $ppt -Layout 1
            Set-OfficePowerPointSlideTitle -Slide $slide -Title 'Saved later'
            Save-OfficePowerPoint -Presentation $ppt -PdfPath .\Examples\Documents\PowerPointSave.pdf
        

Saves the current presentation and exports a PDF sidecar.

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.

Syntax

Save-OfficePowerPoint [-Password <String>] [-PdfPath <String>] -Presentation <PowerPointPresentation> [-Show] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Password String optionalposition: namedpipeline: False
Password used to save the presentation as an encrypted package.
PdfPath String optionalposition: namedpipeline: False
Optional PDF path to create from the same presentation.
Presentation PowerPointPresentation requiredposition: namedpipeline: True (ByValue)
Presentation instance to save.
Show SwitchParameter optionalposition: namedpipeline: False
Launch the saved file in the default viewer.