StructureTextState

StructureTextState

Overview

StructureTextState is a class in Aspose.Pdf FOSS for Java.

Represents text state settings for a structure element in a tagged PDF (ISO 32000-1:2008, §14.8.2.4).

Properties

NameTypeAccessDescription
fontFontReadReturns the font.
fontSizeFloatReadReturns the font size.
fontStyleintReadReturns the font style flags.
foregroundColorColorReadReturns the foreground (text) color.
backgroundColorColorReadReturns the background color.
characterSpacingFloatReadReturns the character spacing.
wordSpacingFloatReadReturns the word spacing.
lineSpacingFloatReadReturns the line spacing.
horizontalScalingFloatReadReturns the horizontal scaling factor.
strikeOutbooleanReadReturns whether strikeout is enabled.
underlinebooleanReadReturns whether underline is enabled.
subscriptbooleanReadReturns whether subscript is enabled.
superscriptbooleanReadReturns whether superscript is enabled.
marginInfoMarginInfoReadReturns the margin info for positioning.

Methods

SignatureDescription
StructureTextState()Creates a new StructureTextState with default values.
getFont()FontReturns the font.
setFont(font: Font)Sets the font.
getFontSize()FloatReturns the font size.
setFontSize(fontSize: float)Sets the font size.
getFontStyle()intReturns the font style flags.
setFontStyle(fontStyle: int)Sets the font style flags.
getForegroundColor()ColorReturns the foreground (text) color.
setForegroundColor(foregroundColor: Color)Sets the foreground (text) color.
getBackgroundColor()ColorReturns the background color.
setBackgroundColor(backgroundColor: Color)Sets the background color.
getCharacterSpacing()FloatReturns the character spacing.
setCharacterSpacing(characterSpacing: float)Sets the character spacing.
getWordSpacing()FloatReturns the word spacing.
setWordSpacing(wordSpacing: float)Sets the word spacing.
getLineSpacing()FloatReturns the line spacing.
setLineSpacing(lineSpacing: float)Sets the line spacing.
getHorizontalScaling()FloatReturns the horizontal scaling factor.
setHorizontalScaling(horizontalScaling: float)Sets the horizontal scaling factor.
isStrikeOut()booleanReturns whether strikeout is enabled.
setStrikeOut(strikeOut: boolean)Sets the strikeout flag.
isUnderline()booleanReturns whether underline is enabled.
setUnderline(underline: boolean)Sets the underline flag.
isSubscript()booleanReturns whether subscript is enabled.
setSubscript(subscript: boolean)Sets the subscript flag.
isSuperscript()booleanReturns whether superscript is enabled.
setSuperscript(superscript: boolean)Sets the superscript flag.
getMarginInfo()MarginInfoReturns the margin info for positioning.
setMarginInfo(marginInfo: MarginInfo)Sets the margin info for positioning.

See Also