
## RenderingWatermark class

Watermark for rendering.

```js
new RenderingWatermark(text, renderingFont)
```

Creates instance of text watermark.

## Methods

| Name | Description |
| --- | --- |
| [constructor_overload$1(imageData)](#constructor-overload1) | Creates instance of image watermark. |
| [getFont()](#getfont) | Gets font of the watermark. |
| [getHAlignment()](#gethalignment) | Gets or sets horizontal alignment of the watermark to the page. The value of the property is TextAlignmentType integer c |
| [getImage()](#getimage) | Gets image of the watermark. |
| [getOffsetX()](#getoffsetx) | Gets or sets offset value to HAlignment |
| [getOffsetY()](#getoffsety) | Gets or sets offset value to VAlignment |
| [getOpacity()](#getopacity) | Gets or sets opacity of the watermark in range [0, 1]. |
| [getRotation()](#getrotation) | Gets or sets roation of the watermark in degrees. |
| [getScaleToPagePercent()](#getscaletopagepercent) | Gets or sets scale relative to target page in percent. |
| [getText()](#gettext) | Gets text of the watermark. |
| [getVAlignment()](#getvalignment) | Gets or sets vertical alignment of the watermark to the page. The value of the property is TextAlignmentType integer con |
| [isBackground()](#isbackground) | Indicates whether the watermark is placed behind page contents. |
| [setBackground()](#setbackground) | Indicates whether the watermark is placed behind page contents. |
| [setHAlignment()](#sethalignment) | Gets or sets horizontal alignment of the watermark to the page. The value of the property is TextAlignmentType integer c |
| [setOffsetX()](#setoffsetx) | Gets or sets offset value to HAlignment |
| [setOffsetY()](#setoffsety) | Gets or sets offset value to VAlignment |
| [setOpacity()](#setopacity) | Gets or sets opacity of the watermark in range [0, 1]. |
| [setRotation()](#setrotation) | Gets or sets roation of the watermark in degrees. |
| [setScaleToPagePercent()](#setscaletopagepercent) | Gets or sets scale relative to target page in percent. |
| [setVAlignment()](#setvalignment) | Gets or sets vertical alignment of the watermark to the page. The value of the property is TextAlignmentType integer con |

### constructor_overload$1(imageData) {#constructor-overload1}

Creates instance of image watermark.

| Parameter | Type | Description |
| --- | --- | --- |
| imageData | Array of byte |  |

### getFont() {#getfont}

Gets font of the watermark.

### getHAlignment() {#gethalignment}

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.

### getImage() {#getimage}

Gets image of the watermark.

### getOffsetX() {#getoffsetx}

Gets or sets offset value to HAlignment

### getOffsetY() {#getoffsety}

Gets or sets offset value to VAlignment

### getOpacity() {#getopacity}

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

### getRotation() {#getrotation}

Gets or sets roation of the watermark in degrees.

### getScaleToPagePercent() {#getscaletopagepercent}

Gets or sets scale relative to target page in percent.

### getText() {#gettext}

Gets text of the watermark.

### getVAlignment() {#getvalignment}

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.

### isBackground() {#isbackground}

Indicates whether the watermark is placed behind page contents.

### setBackground() {#setbackground}

Indicates whether the watermark is placed behind page contents.

### setHAlignment() {#sethalignment}

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.

### setOffsetX() {#setoffsetx}

Gets or sets offset value to HAlignment

### setOffsetY() {#setoffsety}

Gets or sets offset value to VAlignment

### setOpacity() {#setopacity}

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

### setRotation() {#setrotation}

Gets or sets roation of the watermark in degrees.

### setScaleToPagePercent() {#setscaletopagepercent}

Gets or sets scale relative to target page in percent.

### setVAlignment() {#setvalignment}

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.
