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
| Name | Type | Access | Description |
|---|---|---|---|
font | Font | Read | Returns the font. |
fontSize | Float | Read | Returns the font size. |
fontStyle | int | Read | Returns the font style flags. |
foregroundColor | Color | Read | Returns the foreground (text) color. |
backgroundColor | Color | Read | Returns the background color. |
characterSpacing | Float | Read | Returns the character spacing. |
wordSpacing | Float | Read | Returns the word spacing. |
lineSpacing | Float | Read | Returns the line spacing. |
horizontalScaling | Float | Read | Returns the horizontal scaling factor. |
strikeOut | boolean | Read | Returns whether strikeout is enabled. |
underline | boolean | Read | Returns whether underline is enabled. |
subscript | boolean | Read | Returns whether subscript is enabled. |
superscript | boolean | Read | Returns whether superscript is enabled. |
marginInfo | MarginInfo | Read | Returns the margin info for positioning. |
Methods
| Signature | Description |
|---|---|
StructureTextState() | Creates a new StructureTextState with default values. |
getFont() → Font | Returns the font. |
setFont(font: Font) | Sets the font. |
getFontSize() → Float | Returns the font size. |
setFontSize(fontSize: float) | Sets the font size. |
getFontStyle() → int | Returns the font style flags. |
setFontStyle(fontStyle: int) | Sets the font style flags. |
getForegroundColor() → Color | Returns the foreground (text) color. |
setForegroundColor(foregroundColor: Color) | Sets the foreground (text) color. |
getBackgroundColor() → Color | Returns the background color. |
setBackgroundColor(backgroundColor: Color) | Sets the background color. |
getCharacterSpacing() → Float | Returns the character spacing. |
setCharacterSpacing(characterSpacing: float) | Sets the character spacing. |
getWordSpacing() → Float | Returns the word spacing. |
setWordSpacing(wordSpacing: float) | Sets the word spacing. |
getLineSpacing() → Float | Returns the line spacing. |
setLineSpacing(lineSpacing: float) | Sets the line spacing. |
getHorizontalScaling() → Float | Returns the horizontal scaling factor. |
setHorizontalScaling(horizontalScaling: float) | Sets the horizontal scaling factor. |
isStrikeOut() → boolean | Returns whether strikeout is enabled. |
setStrikeOut(strikeOut: boolean) | Sets the strikeout flag. |
isUnderline() → boolean | Returns whether underline is enabled. |
setUnderline(underline: boolean) | Sets the underline flag. |
isSubscript() → boolean | Returns whether subscript is enabled. |
setSubscript(subscript: boolean) | Sets the subscript flag. |
isSuperscript() → boolean | Returns whether superscript is enabled. |
setSuperscript(superscript: boolean) | Sets the superscript flag. |
getMarginInfo() → MarginInfo | Returns the margin info for positioning. |
setMarginInfo(marginInfo: MarginInfo) | Sets the margin info for positioning. |