Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Set-OfficePdfFooter

Aliases: PdfFooter
Module
PSWriteOffice
Aliases
PdfFooter
Inputs
None
Outputs
System.Void

Composes running PDF Footer text, child runs or the native builder inside New-OfficePdf.

Syntax

Set-OfficePdfFooter
[-Alignment <OfficeAlignment>]
[-EvenPage]
[-FirstPage]
[-Size <OfficeLength>]
[[-Text] <String>]
[<CommonParameters>]
#
Parameter set: Text
Set-OfficePdfFooter
[-Alignment <OfficeAlignment>]
[-Content] <ScriptBlock>
[-EvenPage]
[-FirstPage]
[-Size <OfficeLength>]
[<CommonParameters>]
#
Parameter set: Content
Set-OfficePdfFooter
-Compose <ScriptBlock>
[<CommonParameters>]
#
Parameter set: Builder

Examples

Add a styled running Footer.

New-OfficePdf ./Report.pdf { PdfFooter { PdfText 'Internal' -Italic }; PdfParagraph 'Report' }

Parameters

-Alignment OfficeAlignment optionalsets: Text, Content
Text alignment.
Possible values: Left, Center, Right, Justify, Start, End
-EvenPage SwitchParameter optionalsets: Text, Content
Configure the even page variant.
-FirstPage SwitchParameter optionalsets: Text, Content
Configure the first page variant.
-Size OfficeLength optionalsets: Text, Content
Text size; bare numbers mean points.
-Text String optionalposition: 0sets: Text
Running text supporting {page} and {pages} tokens.
-Content ScriptBlock requiredposition: 0sets: Content
Styled PdfText child commands.
-Compose ScriptBlock requiredsets: Builder
Advanced native Footer builder, passed as the script argument.

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.