RenderingWatermark
RenderingWatermark class
Watermark for rendering.
Constructors
| Name | Description |
|---|---|
| RenderingWatermark | Creates instance of text watermark. |
| RenderingWatermark | Creates instance of image watermark. |
Properties
| Name | Type | Description |
|---|---|---|
| Rotation | float | Gets or sets roation of the watermark in degrees. |
| ScaleToPagePercent | int | Gets or sets scale relative to target page in percent. |
| Opacity | float | Gets or sets opacity of the watermark in range [0, 1]. |
| IsBackground | boolean | Indicates whether the watermark is placed behind page contents. |
| Text | String | Gets text of the watermark. |
| Font | RenderingFont | Gets font of the watermark. |
| Image | byte[] | Gets image of the watermark. |
| HAlignment | int | Gets or sets horizontal alignment of the watermark to the page. The value of the property is TextAlignmentType integer c |
| VAlignment | int | Gets or sets vertical alignment of the watermark to the page. The value of the property is TextAlignmentType integer con |
| OffsetX | float | Gets or sets offset value to HAlignment |
| OffsetY | float | Gets or sets offset value to VAlignment |
RenderingWatermark(text, renderingFont) (1 of 2)
Creates instance of text watermark.
| Parameter | Type | Description |
|---|---|---|
| text | String | watermark text |
| renderingFont | RenderingFont | watermark font |
RenderingWatermark(imageData) (2 of 2)
Creates instance of image watermark.
| Parameter | Type | Description |
|---|---|---|
| imageData | byte[] |
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