# Add-OfficePdfWatermark

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

Cmdlet 

Aliases: PdfWatermark

**Module**

`PSWriteOffice`

**Aliases**

`PdfWatermark`

**Inputs**

`None`

**Source**

[AddOfficePdfWatermarkCommand.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Pdf/AddOfficePdfWatermarkCommand.cs#L23) 

Adds a generated-document text watermark.

## Syntax

```
Add-OfficePdfWatermark
[-Color <OfficeColor>]
[-Opacity <Double>]
[-Rotation <Double>]
[-Size <OfficeLength>]
[-Text] <String>
[<CommonParameters>]
```

[#](#method-add-officepdfwatermark-officecolor-double-double-officelength-string)

Parameter set: `Context`

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [Watermarks, Stamps, and Metadata](/docs/pdf/watermarks-stamps/) Guide
  
  Add text or image watermarks and stamps to new or existing PDFs and set title, author, and keywords with OfficeIMO.Pdf and PSWriteOffice.

## Examples

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

```powershell
New-OfficePdf -Path .\Examples\Documents\PdfWatermark.pdf {
    Add-OfficePdfWatermark -Text 'DRAFT' -Size 72 -Opacity 0.12 -Rotation -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 OfficeColor optional**

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

**-Opacity Double optional**

Watermark opacity, 0 through 1.

**-Rotation Double optional**

Watermark rotation angle.

**-Size OfficeLength optional**

Watermark font size.

**-Text String requiredposition: 0**

Watermark text.

## 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).

<!-- PowerForge markdown artifact sha256:91A39EFAFD9CC3C073158BB568F86A6E88993318217C657395468B9CA8024CED -->
