Package com.itextpdf.forms.fields
Class TextFormFieldBuilder
java.lang.Object
com.itextpdf.forms.fields.FormFieldBuilder
com.itextpdf.forms.fields.TerminalFormFieldBuilder<TextFormFieldBuilder>
com.itextpdf.forms.fields.TextFormFieldBuilder
Builder for text form field.
-
Constructor Summary
ConstructorDescriptionTextFormFieldBuilder
(PdfDocument document, String formFieldName) Creates builder forPdfTextFormField
creation. -
Method Summary
Modifier and TypeMethodDescriptionCreates multiline text form field based on provided parameters.Creates text form field based on provided parameters.protected TextFormFieldBuilder
getThis()
Returns this builder object.Methods inherited from class com.itextpdf.forms.fields.TerminalFormFieldBuilder
getFont, getPage, getWidgetRectangle, setFont, setPage, setPage, setWidgetRectangle
Methods inherited from class com.itextpdf.forms.fields.FormFieldBuilder
getConformanceLevel, getDocument, getFormFieldName, setConformanceLevel
-
Constructor Details
-
TextFormFieldBuilder
Creates builder forPdfTextFormField
creation.- Parameters:
-
document
- document to be used for form field creation -
formFieldName
- name of the form field
-
-
Method Details
-
createText
Creates text form field based on provided parameters.- Returns:
-
new
PdfTextFormField
instance
-
createMultilineText
Creates multiline text form field based on provided parameters.- Returns:
-
new
PdfTextFormField
instance
-
getThis
Returns this builder object. Required for superclass methods.- Specified by:
-
getThis
in classFormFieldBuilder<TextFormFieldBuilder>
- Returns:
- this builder
-