Evotec

Project

PSWriteOffice

PSWriteOffice is an open-source PowerShell and .NET project with packages, release history, and technical documentation.

Stars 144
Forks 12
Open issues 16
PowerShell Gallery downloads 150,904
Release v0.2.0
Language: C# Updated: 2026-04-06

API Reference

Cmdlet

Add-OfficeWordFooter

Namespace PSWriteOffice
Inputs
None
Outputs
System.Object

Adds content to a section footer.

Remarks

Creates or reuses the requested footer part (default/first/even) and runs the DSL script block inside it.

Examples

Authored help example

Append page numbers to the default footer.

PS>


Add-OfficeWordSection { Add-OfficeWordFooter { Add-OfficeWordPageNumber -IncludeTotalPages } }
        

Inserts a footer displaying “Page X of Y”.

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

Add-OfficeWordFooter [-Content <ScriptBlock>] [-Type <HeaderFooterValues>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Content ScriptBlock optionalposition: 0pipeline: False
DSL scriptblock executed within the footer context.
Type HeaderFooterValues optionalposition: namedpipeline: False
The footer kind (Default/First/Even).

Outputs

System.Object