RenderingWatermark

RenderingWatermark class

Watermark for rendering.

Constructors

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

Properties

NameTypeDescription
RotationNumberGets or sets roation of the watermark in degrees.
ScaleToPagePercentNumberGets or sets scale relative to target page in percent.
OpacityNumberGets 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.
HAlignmentNumberGets or sets horizontal alignment of the watermark to the page. The value of the property is TextAlignmentType integer c
VAlignmentNumberGets or sets vertical alignment of the watermark to the page. The value of the property is TextAlignmentType integer con
OffsetXNumberGets or sets offset value to HAlignment
OffsetYNumberGets 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: Number

RenderingWatermark.ScaleToPagePercent property

Gets or sets scale relative to target page in percent.

Type: Number

RenderingWatermark.Opacity property

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

Type: Number

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: Number

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: Number

RenderingWatermark.OffsetX property

Gets or sets offset value to HAlignment

Type: Number

RenderingWatermark.OffsetY property

Gets or sets offset value to VAlignment

Type: Number