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-OfficeWordWatermark

Namespace PSWriteOffice
Inputs
None
Outputs
System.Object

Adds a watermark to the current section or header.

Remarks

Supports text or image watermarks using OfficeIMO.Word.

Examples

Authored help example

Add a text watermark.

PS>


Add-OfficeWordWatermark -Text 'CONFIDENTIAL'
        

Inserts a text watermark into the current section.

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-OfficeWordWatermark [-HorizontalOffset <Nullable`1>] [-PassThru] [-Scale <Double>] -Text <String> [-VerticalOffset <Nullable`1>] [<CommonParameters>]
#
Parameter set: Text

Parameters

HorizontalOffset Nullable`1 optionalposition: namedpipeline: False
Horizontal offset for the watermark.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the created watermark.
Scale Double optionalposition: namedpipeline: False
Scale factor for the watermark.
Text String requiredposition: 0pipeline: False
Watermark text.
VerticalOffset Nullable`1 optionalposition: namedpipeline: False
Vertical offset for the watermark.

Outputs

System.Object

Add-OfficeWordWatermark [-HorizontalOffset <Nullable`1>] -ImagePath <String> [-PassThru] [-Scale <Double>] [-VerticalOffset <Nullable`1>] [<CommonParameters>]
#
Parameter set: Image

Parameters

HorizontalOffset Nullable`1 optionalposition: namedpipeline: False
Horizontal offset for the watermark.
ImagePath String requiredposition: 0pipeline: False
Path to an image watermark.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the created watermark.
Scale Double optionalposition: namedpipeline: False
Scale factor for the watermark.
VerticalOffset Nullable`1 optionalposition: namedpipeline: False
Vertical offset for the watermark.

Outputs

System.Object