public class TextStamper extends Stamper
Stamper
. Defines a Text PDF Stamper. Can be applied with:
PdfDocument.applyStamp(Stamper, PageSelection)
Constructor and Description |
---|
TextStamper()
Instantiates a new Text stamper.
|
TextStamper(String text)
Instantiates a new Text stamper.
|
Modifier and Type | Method and Description |
---|---|
String |
getBackgroundColorCode()
Gets Background Color.
|
String |
getFontColorCode()
Gets Font Color.
|
String |
getFontFamily()
Gets font family.
|
int |
getFontSize()
Gets font size.
|
String |
getText()
Gets text to be stamped by the Stamper
|
boolean |
isBold()
Is bold boolean.
|
boolean |
isItalic()
Is italic boolean.
|
boolean |
isStrikethrough()
Is strikethrough boolean.
|
boolean |
isUnderline()
Is underline boolean.
|
boolean |
isUseGoogleFont()
Is use google font boolean.
|
void |
setBackgroundColorCode(String value)
Sets Background Color.
|
void |
setBold(boolean value)
Sets bold.
|
void |
setFontColor(String value)
Sets Font Color.
|
void |
setFontFamily(String value)
Sets font family.
|
void |
setFontSize(int value)
Sets font size.
|
void |
setItalic(boolean value)
Sets italic.
|
void |
setStrikethrough(boolean value)
Sets strikethrough.
|
void |
setText(String value)
Sets text to be stamped by the Stamper
|
void |
setUnderline(boolean value)
Sets underline.
|
void |
setUseGoogleFont(boolean value)
Sets use google font.
|
getHorizontalAlignment, getHorizontalOffset, getHtml, getHyperlink, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpacity, getRotation, getScale, getVerticalAlignment, getVerticalOffset, isStampBehindContent, setHorizontalAlignment, setHorizontalOffset, setHtml, setHyperlink, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOpacity, setRotation, setScale, setStampBehindContent, setVerticalAlignment, setVerticalOffset
public TextStamper()
Stamper
. Defines a Text PDF Stamper. Can be applied with:
PdfDocument.applyStamp(Stamper, PageSelection)
public TextStamper(String text)
Stamper
. Defines a Text PDF Stamper. Can be applied with:
PdfDocument.applyStamp(Stamper, PageSelection)
text
- the text to be stamped by the Stamperpublic final String getText()
public final void setText(String value)
value
- the valuepublic final boolean isBold()
public final void setBold(boolean value)
value
- the valuepublic final boolean isItalic()
public final void setItalic(boolean value)
value
- the valuepublic final boolean isUnderline()
public final void setUnderline(boolean value)
value
- the valuepublic final boolean isStrikethrough()
public final void setStrikethrough(boolean value)
value
- the valuepublic final int getFontSize()
public final void setFontSize(int value)
value
- the valuepublic final String getFontFamily()
setUseGoogleFont(boolean)
property of this TextStamper to true.public final void setFontFamily(String value)
setUseGoogleFont(boolean)
property of this TextStamper to true.value
- the valuepublic final boolean isUseGoogleFont()
setFontFamily(String)
public final void setUseGoogleFont(boolean value)
setFontFamily(String)
value
- the valuepublic final String getFontColorCode()
public final void setFontColor(String value)
value
- font colorpublic final String getBackgroundColorCode()
public final void setBackgroundColorCode(String value)
value
- font colorCopyright © 2022–2023 Iron Software. All rights reserved.