public class PdfTextFormField extends PdfFormField
| Modifier and Type | Field and Description |
|---|---|
static int |
FF_COMB |
static int |
FF_DO_NOT_SCROLL |
static int |
FF_DO_NOT_SPELL_CHECK |
static int |
FF_FILE_SELECT |
static int |
FF_RICH_TEXT |
checkType, FF_MULTILINE, FF_NO_EXPORT, FF_PASSWORD, FF_READ_ONLY, FF_REQUIRED, form, img, textcolor, DEFAULT_FONT_SIZE, font, fontSize, MIN_FONT_SIZE, parent, pdfAConformanceLevel| Modifier | Constructor and Description |
|---|---|
protected |
PdfTextFormField(PdfDictionary pdfObject) |
protected |
PdfTextFormField(PdfDocument pdfDocument) |
protected |
PdfTextFormField(PdfWidgetAnnotation widget,
PdfDocument pdfDocument) |
| Modifier and Type | Method and Description |
|---|---|
PdfName |
getFormType()
Returns
Tx, the form type for textual form fields. |
int |
getMaxLen()
Gets the maximum length of the field's text, in characters.
|
boolean |
isComb()
Meaningful only if the MaxLen entry is present in the text field dictionary
and if the Multiline, Password, and FileSelect flags are clear.
|
boolean |
isFileSelect()
If true, the text entered in the field represents the pathname of a file
whose contents are to be submitted as the value of the field.
|
boolean |
isRichText()
If true, the value of this field should be represented as a rich text string.
|
boolean |
isScroll()
If true, the field scrolls (horizontally for single-line fields, vertically for multiple-line fields)
to accommodate more text than fits within its annotation rectangle.
|
boolean |
isSpellCheck()
If true, text entered in the field is spell-checked.
|
PdfTextFormField |
setComb(boolean comb)
Meaningful only if the MaxLen entry is present in the text field dictionary
and if the Multiline, Password, and FileSelect flags are clear.
|
PdfTextFormField |
setFileSelect(boolean fileSelect)
If true, the text entered in the field represents the pathname of a file
whose contents are to be submitted as the value of the field.
|
PdfTextFormField |
setMaxLen(int maxLen)
Sets the maximum length of the field's text, in characters.
|
PdfTextFormField |
setMultiline(boolean multiline)
If true, the field can contain multiple lines of text; if false, the field?s text is restricted to a single line.
|
PdfTextFormField |
setPassword(boolean password)
If true, the field is intended for entering a secure password that should not be echoed visibly to the screen.
|
PdfTextFormField |
setRichText(boolean richText)
If true, the value of this field should be represented as a rich text string.
|
PdfTextFormField |
setScroll(boolean scroll)
If true, the field scrolls (horizontally for single-line fields, vertically for multiple-line fields)
to accommodate more text than fits within its annotation rectangle.
|
PdfTextFormField |
setSpellCheck(boolean spellCheck)
If true, text entered in the field is spell-checked.
|
addKid, addKid, addKid, getAdditionalAction, getAllChildFields, getAllChildFormFields, getAlternativeName, getAppearanceStates, getChildField, getChildFields, getChildFormAnnotations, getChildFormFields, getDefaultAppearance, getDefaultStyle, getDefaultValue, getDisplayValue, getFieldFlag, getFieldFlags, getFirstFormAnnotation, getFormFieldKeys, getFormType, getJustification, getKids, getMappingName, getOptions, getPartialFieldName, getRichText, getValue, getValueAsString, getWidgets, isFormField, isInReadingMode, isMultiline, isNoExport, isPassword, isReadOnly, isRequired, makeFieldFlag, makeFormField, makeFormFieldOrAnnotation, regenerateField, release, removeChild, removeChildren, setAdditionalAction, setAlternativeName, setCheckType, setColor, setDefaultStyle, setDefaultValue, setFieldFlag, setFieldFlag, setFieldFlags, setFieldName, setJustification, setMappingName, setNoExport, setOptions, setReadOnly, setRequired, setRichText, setValue, setValue, setValue, setValue, updateDefaultAppearancedisableCurrentFieldRegeneration, disableFieldRegeneration, enableCurrentFieldRegeneration, enableFieldRegeneration, equals, getColor, getDocument, getFieldName, getFont, getFontSize, getParent, getParentField, getPdfAConformanceLevel, getPdfObject, hashCode, isFieldRegenerationEnabled, isTerminalFormField, isWrappedObjectMustBeIndirect, put, remove, setFont, setFontAndSize, setFontSize, setFontSize, setFontSizeAutoScale, setParentensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, flush, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidReleasepublic static final int FF_FILE_SELECT
public static final int FF_DO_NOT_SPELL_CHECK
public static final int FF_DO_NOT_SCROLL
public static final int FF_COMB
public static final int FF_RICH_TEXT
protected PdfTextFormField(PdfDocument pdfDocument)
protected PdfTextFormField(PdfWidgetAnnotation widget, PdfDocument pdfDocument)
protected PdfTextFormField(PdfDictionary pdfObject)
public PdfName getFormType()
Tx, the form type for textual form fields.getFormType in class PdfFormFieldPdfNamepublic PdfTextFormField setMultiline(boolean multiline)
multiline - whether or not the file can contain multiple lines of textPdfTextFormFieldpublic PdfTextFormField setPassword(boolean password)
password - whether or not to obscure the typed charactersPdfTextFormFieldpublic boolean isFileSelect()
public PdfTextFormField setFileSelect(boolean fileSelect)
fileSelect - whether or not this field should represent a pathPdfTextFormFieldpublic boolean isSpellCheck()
public PdfTextFormField setSpellCheck(boolean spellCheck)
spellCheck - whether or not to spell-checkPdfTextFormFieldpublic boolean isScroll()
public PdfTextFormField setScroll(boolean scroll)
scroll - whether or not to allow longer textsPdfTextFormFieldpublic boolean isComb()
public PdfTextFormField setComb(boolean comb)
comb - whether or not to enable combingPdfTextFormFieldpublic boolean isRichText()
public PdfTextFormField setRichText(boolean richText)
richText - whether or not to represent text as rich textPdfTextFormFieldpublic int getMaxLen()
public PdfTextFormField setMaxLen(int maxLen)
maxLen - the maximum text lengthCopyright © 1998–2023 Apryse Group NV. All rights reserved.