Uses of Class
com.itextpdf.forms.fields.PdfFormField
Packages that use PdfFormField
Package
Description
-
Uses of PdfFormField in com.itextpdf.forms
Fields in com.itextpdf.forms with type parameters of type PdfFormFieldModifier and TypeFieldDescriptionprotected Map<String,PdfFormField> PdfAcroForm.fieldsA map of field names and their associatedform fieldobjects.Methods in com.itextpdf.forms that return PdfFormFieldModifier and TypeMethodDescriptionCreates an in-memory copy of aPdfFormField.Gets aform fieldby its name.Methods in com.itextpdf.forms that return types with arguments of type PdfFormFieldModifier and TypeMethodDescriptionPdfAcroForm.getAllFormFields()Gets allform fields as aMapincluding fields kids.PdfAcroForm.getFieldsForFlattening()Gets a collection ofform fields, prepared for flattening usingPdfAcroForm.partialFormFlattening(java.lang.String)method.PdfAcroForm.getRootFormFields()Gets root fields (i.e.Methods in com.itextpdf.forms with parameters of type PdfFormFieldModifier and TypeMethodDescriptionvoidPdfAcroForm.addField(PdfFormField field) This method adds the field to the last page in the document.voidPdfAcroForm.addField(PdfFormField field, PdfPage page) This method adds the field to a specific page.voidPdfAcroForm.addField(PdfFormField field, PdfPage page, boolean throwExceptionOnError) This method adds the field to a specific page.voidPdfAcroForm.addFieldAppearanceToPage(PdfFormField field, PdfPage page) This method merges field with its annotation and places it on the given page.voidPdfAcroForm.replaceField(String name, PdfFormField field) Replaces thePdfFormFieldof a certain name with anotherPdfFormField. -
Uses of PdfFormField in com.itextpdf.forms.fields
Subclasses of PdfFormField in com.itextpdf.forms.fieldsModifier and TypeClassDescriptionclassAn interactive control on the screen that raises events and/or can retain data.classAn AcroForm field type representing any type of choice field.classAn AcroForm field containing signature data.classAn AcroForm field containing textual data.Fields in com.itextpdf.forms.fields declared as PdfFormFieldModifier and TypeFieldDescriptionprotected PdfFormFieldAbstractPdfFormField.parentParent form field.Methods in com.itextpdf.forms.fields that return PdfFormFieldModifier and TypeMethodDescriptionPdfButtonFormField.addKid(AbstractPdfFormField kid) Adds a new kid to theKidsarray property from aAbstractPdfFormField.PdfFormField.addKid(AbstractPdfFormField kid) Adds a new kid to theKidsarray property from aAbstractPdfFormField.PdfFormField.addKid(AbstractPdfFormField kid, boolean throwExceptionOnError) Adds a new kid to theKidsarray property from aAbstractPdfFormField.PdfFormField.addKid(PdfWidgetAnnotation kid) Adds a new kid to theKidsarray property from aPdfWidgetAnnotation.static PdfFormFieldPdfFormCreator.createFormField(PdfWidgetAnnotation widget, PdfDocument document) Creates a form field as a parent of aPdfWidgetAnnotationusing provided factory.static PdfFormFieldPdfFormCreator.createFormField(PdfDictionary dictionary) Creates a form field as a wrapper object around aPdfDictionaryusing provided factory.static PdfFormFieldPdfFormCreator.createFormField(PdfDocument document) Create a minimal, emptyPdfFormFieldusing provided factory.PdfFormFactory.createFormField(PdfWidgetAnnotation widget, PdfDocument document) Creates a form field as a parent of aPdfWidgetAnnotation.PdfFormFactory.createFormField(PdfDictionary dictionary) Creates a form field as a wrapper object around aPdfDictionary.PdfFormFactory.createFormField(PdfDocument document) Create a minimal, emptyPdfFormField.NonTerminalFormFieldBuilder.createNonTerminalFormField()Creates non-terminal form field based on provided parameters.PdfFormField.getChildField(String fieldName) Gets the child field of form field.AbstractPdfFormField.getParentField()Gets the parent field.static PdfFormFieldPdfFormField.makeFormField(PdfObject pdfObject, PdfDocument document) Creates a (subtype of)PdfFormFieldobject.PdfFormField.setAdditionalAction(PdfName key, PdfAction action) Sets an additional action for the form field.PdfFormField.setAlternativeName(String name) Changes the alternate name of the field to the specified value.PdfFormField.setCheckType(CheckBoxType checkType) Changes the type of graphical marker used to mark a checkbox as 'on'.PdfFormField.setDefaultStyle(PdfString defaultStyleString) Sets a default style string, as described in "Rich Text Strings" section of Pdf spec.PdfFormField.setDefaultValue(PdfObject value) Sets the default fallback value for the form field.PdfFormField.setFieldFlag(int flag) Adds a flag, or combination of flags, for the form field.PdfFormField.setFieldFlag(int flag, boolean value) Adds or removes a flag, or combination of flags, for the form field.PdfFormField.setFieldFlags(int flags) Sets a flag, or combination of flags, for the form field.PdfFormField.setFieldName(String name) Changes the name of the field to the specified value.PdfFormField.setJustification(TextAlignment justification) Sets a code specifying the form of quadding (justification) to be used in displaying the text: 0 Left-justified 1 Centered 2 Right-justifiedPdfFormField.setMappingName(String name) Changes the mapping name of the field to the specified value.PdfFormField.setNoExport(boolean noExport) Sets the NoExport flag, specifying whether or not exporting is forbidden.PdfFormField.setOptions(PdfArray options) Sets options for the form field.PdfFormField.setReadOnly(boolean readOnly) Sets the ReadOnly flag, specifying whether or not the field can be changed.PdfFormField.setRequired(boolean required) Sets the Required flag, specifying whether or not the field must be filled in.PdfFormField.setRichText(PdfObject richText) Sets a rich text string, as described in "Rich Text Strings" section of Pdf spec.Sets a value to the field and generating field appearance if needed.Sets a value to the field (and fields with the same names) and generates field appearance if needed.Set text field value with given font and size.Sets the field value and the display string.Methods in com.itextpdf.forms.fields that return types with arguments of type PdfFormFieldModifier and TypeMethodDescriptionPdfFormField.getAllChildFormFields()Gets all childFields of this object, including the children of the children but not annotations.PdfFormField.getChildFormFields()Gets all child form fields of this form field.Methods in com.itextpdf.forms.fields with parameters of type PdfFormFieldModifier and TypeMethodDescriptionstatic voidPdfFormField.applyAccessibilityProperties(PdfFormField formField, IAccessibleElement modelElement, PdfDocument pdfDocument) AppliesAccessibilityPropertiesfor provided form field and its annotation children.static voidPdfFormFieldMergeUtil.mergeFormFields(PdfFormField firstField, PdfFormField secondField, boolean throwExceptionOnError) This method combines two form fields.static voidPdfFormFieldMergeUtil.mergeKidsWithSameNames(PdfFormField parentField, boolean throwExceptionOnError) This method merges all kids with the same names for the given parent field dictionary (recursively).static booleanPdfFormFieldMergeUtil.mergeTwoFieldsWithTheSameNames(PdfFormField firstField, PdfFormField secondField, boolean throwExceptionOnError) This method merges different values from two field dictionaries into the first one and combines kids.static voidPdfFormAnnotationUtil.mergeWidgetWithParentField(PdfFormField field) Merge single widget annotation with its parent field.static voidPdfFormFieldMergeUtil.processDirtyAnnotations(PdfFormField parentField, boolean throwExceptionOnError) Sometimes widgets contain field related keys, and they are the same as these field keys at parent.static voidPdfFormAnnotationUtil.separateWidgetAndField(PdfFormField field) Separate merged field to form field and pure widget annotation.voidAbstractPdfFormField.setParent(PdfFormField parent) Sets a parentPdfFormFieldfor the current object. -
Uses of PdfFormField in com.itextpdf.forms.fields.merging
Methods in com.itextpdf.forms.fields.merging with parameters of type PdfFormFieldModifier and TypeMethodDescriptionbooleanAddIndexStrategy.execute(PdfFormField firstField, PdfFormField secondField, boolean throwExceptionOnError) Renames the second field by adding an index to its name.booleanAlwaysThrowExceptionStrategy.execute(PdfFormField firstField, PdfFormField secondField, boolean throwExceptionOnError) executes the strategy.booleanMergeFieldsStrategy.execute(PdfFormField firstField, PdfFormField secondField, boolean throwExceptionOnError) executes the strategy.booleanOnDuplicateFormFieldNameStrategy.execute(PdfFormField firstField, PdfFormField secondField, boolean throwExceptionOnError) executes the strategy. -
Uses of PdfFormField in com.itextpdf.forms.form.renderer
Methods in com.itextpdf.forms.form.renderer with parameters of type PdfFormFieldModifier and TypeMethodDescriptionprotected voidAbstractFormFieldRenderer.applyAccessibilityProperties(PdfFormField formField, PdfDocument pdfDocument) Applies the accessibility properties to the form field.protected voidAbstractSelectFieldRenderer.applyAccessibilityProperties(PdfFormField formField, PdfDocument pdfDocument) Applies the accessibility properties to the form field. -
Uses of PdfFormField in com.itextpdf.signatures
Methods in com.itextpdf.signatures with parameters of type PdfFormFieldModifier and TypeMethodDescriptionprotected voidPdfSigner.applyAccessibilityProperties(PdfFormField formField, IAccessibleElement modelElement, PdfDocument pdfDocument) AppliesAccessibilityPropertiesfor provided signature field.