# Add-OfficePdfWatermark

Adds a generated-document text watermark. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

Aliases: PdfWatermark

**Module**

`PSWriteOffice`

**Aliases**

`PdfWatermark`

**Inputs**

`OfficeIMO.Pdf.PdfDocument`

**Outputs**

`OfficeIMO.Pdf.PdfDocument`

**Source**

[AddOfficePdfWatermarkCommand.cs:21](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Pdf/AddOfficePdfWatermarkCommand.cs#L21) 

Adds a generated-document text watermark.

## Syntax

```
Add-OfficePdfWatermark
[-Color <String>]
[-FontSize <Double>]
[-Opacity <Double>]
[-PassThru]
[-RotationAngle <Double>]
[-Text] <String>
[<CommonParameters>]
```

[#](#method-add-officepdfwatermark-string-double-double-switchparameter-double-string)

Parameter set: `Context`

```
Add-OfficePdfWatermark
[-Color <String>]
-Document <PdfDocument>
[-FontSize <Double>]
[-Opacity <Double>]
[-PassThru]
[-RotationAngle <Double>]
[-Text] <String>
[<CommonParameters>]
```

[#](#method-add-officepdfwatermark-string-pdfdocument-double-double-switchparameter-double-string)

Parameter set: `Document`

## Examples

### Add a draft watermark to every generated page.

```powershell
New-OfficePdf -Path .\Examples\Documents\PdfWatermark.pdf {
    Add-OfficePdfWatermark -Text 'DRAFT' -FontSize 72 -Opacity 0.12 -RotationAngle -35 -Color '#64748B'
    Add-OfficePdfHeading -Text 'Draft service review'
    Add-OfficePdfParagraph -Text 'This copy is not final.'
}
```

Adds a text watermark while generating the PDF.

## Parameters

**-Color String optional**

Optional watermark color. Named colors and hexadecimal values are accepted.

**-FontSize Double optional**

Watermark font size.

**-Opacity Double optional**

Watermark opacity, 0 through 1.

**-PassThru SwitchParameter optional**

Emit the updated document.

**-RotationAngle Double optional**

Watermark rotation angle.

**-Text String requiredposition: 0**

Watermark text.

**-Document PdfDocument requiredpipeline: True (ByValue)sets: Document**

Compatibility parameter. Page composition is supported only inside New-OfficePdf.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:8A05CA3DF9319321EA8FAB0019A93AF5763C605B4DA5F128046678384787009F -->
