Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Add-OfficePowerPointFooter

Aliases: PowerPointFooter
Module
PSWriteOffice
Aliases
PowerPointFooter
Inputs
None

Sets a deck or logical-slide footer slot using text or native inline content.

Syntax

Add-OfficePowerPointFooter
[-Alignment <OfficeAlignment>]
[-Text] <String>
[<CommonParameters>]
#
Parameter set: Text
Add-OfficePowerPointFooter
[-Alignment <OfficeAlignment>]
[-Content] <ScriptBlock>
[<CommonParameters>]
#
Parameter set: Content

Description

At the New-/Open- block level the slot applies throughout the deck, including existing slides. Inside PowerPointSlide it overrides that slot for the slide and its continuations. The content block runs once; repeated footers retain native styles, fields and links.

Examples

Add classification and page numbers.

New-OfficePowerPoint -Path ./Review.pptx {
    PowerPointFooter 'Contoso | Confidential'
    PowerPointFooter -Alignment Right { PowerPointSlideNumber -IncludeTotal }
    PowerPointSlide -Title 'Service review'
}

Parameters

-Alignment OfficeAlignment optional
Left, Center or Right slot; defaults to Left.
Possible values: Left, Center, Right, Justify, Start, End
-Text String requiredposition: 0sets: Text
Plain text for the footer slot.
-Content ScriptBlock requiredposition: 0sets: Content
Inline content written with PowerPointText and PowerPointSlideNumber.

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.