Constructor Summary |
---|
RenderingWatermark(text, renderingFont)
Creates instance of text watermark. |
RenderingWatermark(imageData)
Creates instance of image watermark. |
Property Getters/Setters Summary | ||
---|---|---|
method | getFont() | |
Gets font of the watermark.
|
||
method | getHAlignment() | |
method | setHAlignment(value) | |
Gets or sets horizontal alignment of the watermark to the page. The value of the property is TextAlignmentType integer constant. | ||
method | getImage() | |
Gets image of the watermark.
|
||
method | isBackground() | |
method | setBackground(value) | |
Indicates whether the watermark is placed behind page contents. | ||
method | getOffsetX() | |
method | setOffsetX(value) | |
Gets or sets offset value to |
||
method | getOffsetY() | |
method | setOffsetY(value) | |
Gets or sets offset value to |
||
method | getOpacity() | |
method | setOpacity(value) | |
Gets or sets opacity of the watermark in range [0, 1]. | ||
method | getRotation() | |
method | setRotation(value) | |
Gets or sets roation of the watermark in degrees. | ||
method | getScaleToPagePercent() | |
method | setScaleToPagePercent(value) | |
Gets or sets scale relative to target page in percent. | ||
method | getText() | |
Gets text of the watermark.
|
||
method | getVAlignment() | |
method | setVAlignment(value) | |
Gets or sets vertical alignment of the watermark to the page. The value of the property is TextAlignmentType integer constant. |
RenderingWatermark(text, renderingFont)
text: String
- watermark textrenderingFont: RenderingFont
- watermark fontRenderingWatermark(imageData)
imageData: byte[]
- float getRotation() / setRotation(value)
int getScaleToPagePercent() / setScaleToPagePercent(value)
float getOpacity() / setOpacity(value)
boolean isBackground() / setBackground(value)
String getText()
RenderingFont getFont()
byte[] getImage()
int getHAlignment() / setHAlignment(value)
int getVAlignment() / setVAlignment(value)
float getOffsetX() / setOffsetX(value)
float getOffsetY() / setOffsetY(value)