RenderingWatermark

RenderingWatermark class

Watermark for rendering.

Constructors

NameDescription
RenderingWatermarkCreates instance of text watermark.
RenderingWatermarkCreates instance of image watermark.

Properties

NameTypeDescription
RotationfloatGets or sets roation of the watermark in degrees.
ScaleToPagePercentintGets or sets scale relative to target page in percent.
OpacityfloatGets or sets opacity of the watermark in range [0, 1].
IsBackgroundbooleanIndicates whether the watermark is placed behind page contents.
TextStringGets text of the watermark.
FontRenderingFontGets font of the watermark.
Imagebyte[]Gets image of the watermark.
HAlignmentintGets or sets horizontal alignment of the watermark to the page. The value of the property is TextAlignmentType integer c
VAlignmentintGets or sets vertical alignment of the watermark to the page. The value of the property is TextAlignmentType integer con
OffsetXfloatGets or sets offset value to HAlignment
OffsetYfloatGets or sets offset value to VAlignment

RenderingWatermark(text, renderingFont) (1 of 2)

Creates instance of text watermark.

ParameterTypeDescription
textStringwatermark text
renderingFontRenderingFontwatermark font

RenderingWatermark(imageData) (2 of 2)

Creates instance of image watermark.

ParameterTypeDescription
imageDatabyte[]

RenderingWatermark.Rotation property

Gets or sets roation of the watermark in degrees.

Type: float

RenderingWatermark.ScaleToPagePercent property

Gets or sets scale relative to target page in percent.

Type: int

RenderingWatermark.Opacity property

Gets or sets opacity of the watermark in range [0, 1].

Type: float

RenderingWatermark.IsBackground property

Indicates whether the watermark is placed behind page contents.

Type: boolean

RenderingWatermark.Text property

Gets text of the watermark.

Type: String

RenderingWatermark.Font property

Gets font of the watermark.

Type: RenderingFont

RenderingWatermark.Image property

Gets image of the watermark.

Type: byte[]

RenderingWatermark.HAlignment property

Gets or sets horizontal alignment of the watermark to the page. The value of the property is TextAlignmentType integer constant. Only Left, Center, Right is valid. Default is Left.

Type: int

RenderingWatermark.VAlignment property

Gets or sets vertical alignment of the watermark to the page. The value of the property is TextAlignmentType integer constant. Only Top, Center, Bottom is valid. Default is Top.

Type: int

RenderingWatermark.OffsetX property

Gets or sets offset value to HAlignment

Type: float

RenderingWatermark.OffsetY property

Gets or sets offset value to VAlignment

Type: float