Project

PSWriteOffice

PowerShell document automation across Word, Excel, PowerPoint, PDF, Reader, Confluence, Visio, and open text formats.

Stars 159
Forks 14
PowerShell Gallery downloads 158,661
Release v3.0.5
Language: C# Updated: 2026-09-03

API Reference

Cmdlet

Add-OfficeWordWatermark

Aliases: WordWatermark
Namespace PSWriteOffice
Aliases
WordWatermark
Inputs
None

Adds a watermark to the current section or header.

Remarks

Supports text or image watermarks using OfficeIMO.Word.

Examples

Authored help example

Add a confidentiality watermark while composing a document.

PS>


New-OfficeWord -Path .\ProtectedReport.docx {
                Add-OfficeWordParagraph -Text 'Confidential report'
                Add-OfficeWordWatermark -Text 'CONFIDENTIAL' -Scale 1.2
                Protect-OfficeWordDocument -Password 'secret'
            }
        

Applies a text watermark to the current section and then protects the document through OfficeIMO settings.

Add an image watermark.

PS>


New-OfficeWord -Path .\DraftReport.docx {
                Add-OfficeWordParagraph -Text 'Draft report'
                Add-OfficeWordWatermark -ImagePath .\Assets\Draft.png -Scale 0.6 -HorizontalOffset 20 -VerticalOffset 40
            }
        

Uses the image watermark path and placement parameters exposed by OfficeIMO.Word.

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

Parameters

HorizontalOffset Double 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 Double optionalposition: namedpipeline: False
Vertical offset for the watermark.
Add-OfficeWordWatermark [-HorizontalOffset <Double>] -ImagePath <String> [-PassThru] [-Scale <Double>] [-VerticalOffset <Double>] [<CommonParameters>]
#
Parameter set: Image

Parameters

HorizontalOffset Double 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 Double optionalposition: namedpipeline: False
Vertical offset for the watermark.