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

NameTypeAccessDescription
CharacteristicsCharacteristicsReadAnnotation characteristics (rotation, etc.).
FixedPrintFixedPrintReadGets the fixed print.
RectRectangleReadThe annotation’s rectangle.
Contentsstring?Read/WriteText note associated with the annotation (written to /Contents).
Namestring?Read/WriteAnnotation name (written to /NM).
BorderBorder?Read/WriteBorder styling written to the annotation’s /BS entry.
AnnotationTypeAnnotationTypeReadAlways Watermark.
OpacitydoubleRead/WriteWatermark opacity (0..1).

Methods

SignatureDescription
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