# PdfTextWatermark

Reusable text watermark rendered behind page content.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfTextWatermark.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextWatermark.cs#L7)

**Modifiers**

sealed

Reusable text watermark rendered behind page content.

## Inheritance

- object
- PdfTextWatermark

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [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.

## Usage

Explore 7 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 4

- Property [PdfCreateOptions.EvenPageTextWatermark](/api/pdf/officeimo-pdf-pdfcreateoptions/#property-evenpagetextwatermark)
- Property [PdfCreateOptions.FirstPageTextWatermark](/api/pdf/officeimo-pdf-pdfcreateoptions/#property-firstpagetextwatermark)
- Property [PdfCreateOptions.TextWatermark](/api/pdf/officeimo-pdf-pdfcreateoptions/#property-textwatermark)
- Method [PdfTextWatermark.Clone](/api/pdf/officeimo-pdf-pdftextwatermark/#method-clone)

### Accepted by parameters 3

- Method [PdfPageBuilder.EvenPagesWatermark](/api/pdf/officeimo-pdf-pdfpagebuilder/#method-evenpageswatermark-officeimo-pdf-pdftextwatermark) parameter `watermark`
- Method [PdfPageBuilder.FirstPageWatermark](/api/pdf/officeimo-pdf-pdfpagebuilder/#method-firstpagewatermark-officeimo-pdf-pdftextwatermark) parameter `watermark`
- Method [PdfPageBuilder.Watermark](/api/pdf/officeimo-pdf-pdfpagebuilder/#method-watermark-officeimo-pdf-pdftextwatermark) parameter `watermark`

Filter members 

Show inherited

## Constructors

`public PdfTextWatermark(string text)` [#](#constructor-ctor-string)

[PdfTextWatermark.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextWatermark.cs#L7)

Creates a text watermark.

Parameters

**text string required**

## Methods

`public PdfTextWatermark Clone()` [#](#method-clone)

[PdfTextWatermark.cs:79](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextWatermark.cs#L79)

Creates a deep copy of this watermark.

Returns

`PdfTextWatermark`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string Text { get; set; }` [#](#property-text)

[PdfTextWatermark.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextWatermark.cs#L20)

Watermark text.

`public PdfStandardFont Font { get; set; }` [#](#property-font)

[PdfTextWatermark.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextWatermark.cs#L29)

Standard PDF font family used for the watermark.

`public OfficeLength FontSize { get; set; }` [#](#property-fontsize)

[PdfTextWatermark.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextWatermark.cs#L38)

Watermark font size in points.

`public OfficeColor Color { get; set; }` [#](#property-color)

[PdfTextWatermark.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextWatermark.cs#L46)

Watermark fill color. Defaults to a neutral gray.

`public double Opacity { get; set; }` [#](#property-opacity)

[PdfTextWatermark.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextWatermark.cs#L50)

Fill opacity from 0 to 1. Defaults to 0.12.

`public double RotationAngle { get; set; }` [#](#property-rotationangle)

[PdfTextWatermark.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextWatermark.cs#L62)

Rotation angle in degrees. Defaults to -35.

`public bool Bold { get; set; }` [#](#property-bold)

[PdfTextWatermark.cs:73](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextWatermark.cs#L73)

Use the bold variant of [PdfTextWatermark.Font](/api/pdf/officeimo-pdf-pdftextwatermark/) when available.

`public bool Italic { get; set; }` [#](#property-italic)

[PdfTextWatermark.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextWatermark.cs#L76)

Use the italic variant of [PdfTextWatermark.Font](/api/pdf/officeimo-pdf-pdftextwatermark/) when available.

<!-- PowerForge markdown artifact sha256:0B37A5CD073C58E79ADB3424D9FD1B20F4E8FE9678D9D945260683A064573AA5 -->
