public static class PDFWatermark.WatermarkTextProperty
extends java.lang.Object
This is only used for text watermark.
Modifier and Type | Field and Description |
---|---|
int |
alignment
Text horizontal alignment.
|
long |
color
Text color.
|
Font |
font
Font object used for text.
|
float |
fontSize
Font size in points.
|
int |
fontStyle
Font style, which specifies if text is to be underlined.
|
float |
lineSpace
Space between vertical center of lines, in line heights.
|
Constructor and Description |
---|
WatermarkTextProperty() |
public Font font
Caller should call creating functions in
module to create a Font
Font
object.
public float fontSize
Default: 10.0f.
public long color
Default: 0.
public int fontStyle
It should be one of the followings:
FONTSTYLE_NORMAL
.public float lineSpace
Default: 1.0f.
public int alignment
It should be one of the followings:
WatermarkTextProperty.TEXTALIGNMENT_LEFT
WatermarkTextProperty.TEXTALIGNMENT_CENTER
WatermarkTextProperty.TEXTALIGNMENT_RIGHT
WatermarkTextProperty.TEXTALIGNMENT_LEFT
.