Uses of Class
com.itextpdf.forms.fields.PdfTextFormField
-
Uses of PdfTextFormField in com.itextpdf.forms.fields
Modifier and TypeMethodDescriptionstatic PdfTextFormField
PdfFormField.createMultilineText
(PdfDocument doc, Rectangle rect, String name, String value) Creates a namedmultiline text form field
with an initial value, and the form's default font specified inPdfAcroForm.getDefaultResources()
.static PdfTextFormField
PdfFormField.createMultilineText
(PdfDocument doc, Rectangle rect, String name, String value, PdfFont font, float fontSize) Creates a namedmultilined text form field
with an initial value, with a specified font and font size.static PdfTextFormField
PdfFormField.createText
(PdfDocument doc) Creates an emptytext form field
.static PdfTextFormField
PdfFormField.createText
(PdfDocument doc, Rectangle rect) Creates an emptytext form field
.static PdfTextFormField
PdfFormField.createText
(PdfDocument doc, Rectangle rect, String name) Creates a namedtext form field
with an initial value, and the form's default font specified inPdfAcroForm.getDefaultResources()
.static PdfTextFormField
PdfFormField.createText
(PdfDocument doc, Rectangle rect, String name, String value) Creates a namedtext form field
with an initial value, and the form's default font specified inPdfAcroForm.getDefaultResources()
.static PdfTextFormField
PdfFormField.createText
(PdfDocument doc, Rectangle rect, String name, String value, PdfFont font, float fontSize) Creates a namedtext form field
with an initial value, with a specified font and font size.static PdfTextFormField
PdfFormField.createText
(PdfDocument doc, Rectangle rect, String name, String value, PdfFont font, float fontSize, boolean multiline) Creates a namedtext form field
with an initial value, with a specified font and font size.static PdfTextFormField
PdfFormField.createText
(PdfDocument doc, Rectangle rect, String name, String value, PdfFont font, float fontSize, boolean multiline, PdfAConformanceLevel pdfAConformanceLevel) Creates a namedtext form field
with an initial value, with a specified font and font size.static PdfTextFormField
PdfFormField.createText
(PdfDocument doc, PdfAConformanceLevel pdfAConformanceLevel) Creates an emptytext form field
.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.