PdfWatermarkOptions Class
The options of PdfPage.AddWatermark and PdfDocument.AddWatermark.
public sealed class PdfWatermarkOptionsConstructors
| Name | Description |
|---|---|
| PdfWatermarkOptions() |
PdfWatermarkOptions()
PdfWatermarkOptions.cspublic PdfWatermarkOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Color | Gets the color of the text. The default is gray. |
| Default | Gets the default options: gray Helvetica Bold at 30% opacity, along the diagonal of the page, over its content. |
| Font | Gets the font, or null for Helvetica Bold. The standard 14 fonts only show the characters of WinAnsiEncoding. |
| FontSize | Gets the font size, in points, or null to fit the text in 80% of the page. |
| Opacity | Gets the opacity of the text, from 0 (invisible) to 1 (opaque). The default is 0.3. |
| Placement | 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. |
| Rotation | 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. |
Default
PdfWatermarkOptions.csGets 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
FontSize
PdfWatermarkOptions.csOpacity
PdfWatermarkOptions.csPlacement
PdfWatermarkOptions.csGets 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; }