Class AppearanceStyle
java.lang.Object
org.apache.pdfbox.pdmodel.interactive.form.AppearanceStyle
Define styling attributes to be used for text formatting.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) PDFont
getFont()
Get the font used for text formatting.(package private) float
Get the fontSize used for text formatting.(package private) float
Get the leading used for text formatting.(package private) void
Set the font to be used for text formatting.(package private) void
setFontSize
(float fontSize) Set the font size to be used for formatting.(package private) void
setLeading
(float leading) Set the leading used for text formatting.
-
Field Details
-
font
-
fontSize
private float fontSizeThe font size to be used for text formatting. Defaulting to 12 to match Acrobats default. -
leading
private float leadingThe leading (distance between lines) to be used for text formatting. Defaulting to 1.2*fontSize to match Acrobats default.
-
-
Constructor Details
-
AppearanceStyle
AppearanceStyle()
-
-
Method Details
-
getFont
PDFont getFont()Get the font used for text formatting.- Returns:
- the font used for text formatting.
-
setFont
Set the font to be used for text formatting.- Parameters:
font
- the font to be used.
-
getFontSize
float getFontSize()Get the fontSize used for text formatting.- Returns:
- the fontSize used for text formatting.
-
setFontSize
void setFontSize(float fontSize) Set the font size to be used for formatting.- Parameters:
fontSize
- the font size.
-
getLeading
float getLeading()Get the leading used for text formatting.- Returns:
- the leading used for text formatting.
-
setLeading
void setLeading(float leading) Set the leading used for text formatting.- Parameters:
leading
- the leading to be used.
-