RenderingWatermark
Source: aspose.
Watermark for rendering.
Methods
new RenderingWatermark(text, renderingFont)
Creates instance of text watermark.
Parameters
Name | Type | Optional | Description |
---|---|---|---|
text |
|
|
watermark text |
renderingFont |
|
|
watermark font |
Methods
constructor_overload$1(imageData)
Creates instance of image watermark.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
imageData |
Array of byte |
|
getFont()
Gets font of the watermark.
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()
Gets image of the watermark.
getOffsetX()
Gets or sets offset value to HAlignment
getOffsetY()
Gets or sets offset value to VAlignment
getOpacity()
Gets or sets opacity of the watermark in range [0, 1].
getRotation()
Gets or sets roation of the watermark in degrees.
getScaleToPagePercent()
Gets or sets scale relative to target page in percent.
getText()
Gets text of the watermark.
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()
Indicates whether the watermark is placed behind page contents.
setBackground()
Indicates whether the watermark is placed behind page contents.
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()
Gets or sets offset value to HAlignment
setOffsetY()
Gets or sets offset value to VAlignment
setOpacity()
Gets or sets opacity of the watermark in range [0, 1].
setRotation()
Gets or sets roation of the watermark in degrees.
setScaleToPagePercent()
Gets or sets scale relative to target page in percent.
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.