| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | PDVariableText(PDAcroForm
The form that this field is part of. acroForm, COSDictionary the PDF object to represent as a field. field, PDNonTerminalField the parent node of the node parent)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| pack-priv PDDefaultAppearanceString | Returns: the DA element of the dictionary objectGet the default appearance. |
| public String | Returns: the DS element of the dictionary objectGet the default style string. |
| public int | Returns: The justification of the text strings.This will get the 'quadding' or justification of the text to be displayed. |
| public String | |
| protected final String | Returns: the text streamthe potential text or text stream base)Get a text as text stream. |
| public void | setDefaultAppearance(String
a string describing the default appearance daValue)Set the default appearance. |
| public void | setDefaultStyleString(String
a string describing the default style. defaultStyleString)Set the default style string. |
| public void | |
| public void |
| QUADDING_CENTERED | back to summary |
|---|---|
| public static final int QUADDING_CENTERED | |
| QUADDING_LEFT | back to summary |
|---|---|
| public static final int QUADDING_LEFT | |
| QUADDING_RIGHT | back to summary |
|---|---|
| public static final int QUADDING_RIGHT | |
| PDVariableText | back to summary |
|---|---|
pack-priv PDVariableText(PDAcroForm acroForm)
| |
| PDVariableText | back to summary |
|---|---|
| pack-priv PDVariableText(PDAcroForm acroForm, COSDictionary field, PDNonTerminalField parent) Constructor.
| |
| getDefaultAppearance | back to summary |
|---|---|
| public String getDefaultAppearance() Get the default appearance. This is an inheritable attribute. The default appearance contains a set of default graphics and text operators to define the field’s text size and color.
| |
| getDefaultAppearanceString | back to summary |
|---|---|
| pack-priv PDDefaultAppearanceString getDefaultAppearanceString() throws IOException Get the default appearance. This is an inheritable attribute. The default appearance contains a set of default graphics and text operators to define the field’s text size and color.
| |
| getDefaultStyleString | back to summary |
|---|---|
| public String getDefaultStyleString() Get the default style string. The default style string defines the default style for rich text fields.
| |
| getQ | back to summary |
|---|---|
| public int getQ() This will get the 'quadding' or justification of the text to be displayed.
This is an inheritable attribute.
| |
| getRichTextValue | back to summary |
|---|---|
| public String getRichTextValue() Get the fields rich text value.
| |
| getStringOrStream | back to summary |
|---|---|
| protected final String getStringOrStream(COSBase base) Get a text as text stream. Some dictionary entries allow either a text or a text stream. | |
| setDefaultAppearance | back to summary |
|---|---|
| public void setDefaultAppearance(String daValue) Set the default appearance. This will set the local default appearance for the variable text field only, not affecting a default appearance in the parent hierarchy. Providing null as the value will remove the local default appearance.
This method can also be used to change the font of a field, by replacing the font name from
this string with another font name found in the AcroForm default resources before
calling
| |
| setDefaultStyleString | back to summary |
|---|---|
| public void setDefaultStyleString(String defaultStyleString) Set the default style string. Providing null as the value will remove the default style string.
| |
| setQ | back to summary |
|---|---|
| public void setQ(int q) This will set the quadding/justification of the text. See QUADDING constants.
| |
| setRichTextValue | back to summary |
|---|---|
| public void setRichTextValue(String richTextValue) Set the fields rich text value.
Setting the rich text value will not generate the appearance
for the field.
| |