PdfWatermarkOptions Class

public sealed class PdfWatermarkOptions

Constructors

NameDescription
PdfWatermarkOptions()

PdfWatermarkOptions()

PdfWatermarkOptions.cs
public PdfWatermarkOptions()

No documentation is available.

Properties

NameDescription
ColorGets the color of the text. The default is gray.
DefaultGets the default options: gray Helvetica Bold at 30% opacity, along the diagonal of the page, over its content.
FontGets the font, or null for Helvetica Bold. The standard 14 fonts only show the characters of WinAnsiEncoding.
FontSizeGets the font size, in points, or null to fit the text in 80% of the page.
OpacityGets the opacity of the text, from 0 (invisible) to 1 (opaque). The default is 0.3.
PlacementGets where the watermark is painted. The default, PdfContentPlacement.Over, shows it over images and backgrounds; PdfContentPlacement.Under keeps the content of the page above it.
RotationGets the angle of the text, in degrees, counterclockwise as the page is displayed, or null to follow the diagonal from the lower-left corner to the upper-right corner.

Gets the color of the text. The default is gray.

public PdfColor Color { get; init; }

Property value

PdfColor

Gets the default options: gray Helvetica Bold at 30% opacity, along the diagonal of the page, over its content.

public static PdfWatermarkOptions Default { get; }

Property value

PdfWatermarkOptions

Gets the font, or null for Helvetica Bold. The standard 14 fonts only show the characters of WinAnsiEncoding.

public PdfFont? Font { get; init; }

Property value

PdfFont?

Gets the font size, in points, or null to fit the text in 80% of the page.

public double? FontSize { get; init; }

Property value

double?

Gets the opacity of the text, from 0 (invisible) to 1 (opaque). The default is 0.3.

public double Opacity { get; init; }

Property value

double

Gets where the watermark is painted. The default, PdfContentPlacement.Over, shows it over images and backgrounds; PdfContentPlacement.Under keeps the content of the page above it.

public PdfContentPlacement Placement { get; init; }

Property value

PdfContentPlacement

Gets the angle of the text, in degrees, counterclockwise as the page is displayed, or null to follow the diagonal from the lower-left corner to the upper-right corner.

public double? Rotation { get; init; }

Property value

double?