---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/WatermarkAnnotation
---

# WatermarkAnnotation

## Overview

`WatermarkAnnotation` is a class in Aspose.PDF FOSS for .NET.

Represents a watermark annotation that can be added to a PDF page.

This class provides 5 methods for working with WatermarkAnnotation objects in .NET programs.
Available methods include: `Accept`, `ChangeAfterResize`, `SetText`, `SetTextAndState`, `WatermarkAnnotation`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `AnnotationType`, `Border`, `Characteristics`, `Contents`, `FixedPrint`, `Name`, and 2 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `Characteristics` | `Characteristics` | Read | Annotation characteristics (rotation, etc.). |
| `FixedPrint` | `FixedPrint` | Read | Gets the fixed print. |
| `Rect` | `Rectangle` | Read | The annotation's rectangle. |
| `Contents` | `string?` | Read/Write | Text note associated with the annotation (written to /Contents). |
| `Name` | `string?` | Read/Write | Annotation name (written to /NM). |
| `Border` | `Border?` | Read/Write | Border styling written to the annotation's /BS entry. |
| `AnnotationType` | `AnnotationType` | Read | Always Watermark. |
| `Opacity` | `double` | Read/Write | Watermark opacity (0..1). |

## Methods

| Signature | Description |
|-----------|-------------|
| `WatermarkAnnotation(page: Page, rect: Rectangle)` | Create a watermark annotation for the given page and rectangle. |
| `SetTextAndState(text: string[], textState: TextState)` | Set the text content and text state for the watermark. |
| `SetText(text: Aspose.Pdf.Facades.FormattedText)` | Set the watermark text from a FormattedText. |
| `ChangeAfterResize(transform: Matrix)` | Translate the watermark's rectangle through transform. |
| `Accept(visitor: AnnotationSelector)` | Calls Accept on this WatermarkAnnotation instance. |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)