Uses of Class
com.itextpdf.forms.fields.PdfFormField
-
Packages that use PdfFormField Package Description com.itextpdf.forms com.itextpdf.forms.fields com.itextpdf.forms.fields.merging com.itextpdf.forms.form.renderer com.itextpdf.signatures -
-
Uses of PdfFormField in com.itextpdf.forms
Fields in com.itextpdf.forms with type parameters of type PdfFormField Modifier and Type Field Description protected java.util.Map<java.lang.String,PdfFormField>PdfAcroForm. fieldsA map of field names and their associatedform fieldobjects.private java.util.Set<PdfFormField>PdfAcroForm. fieldsForFlatteningMethods in com.itextpdf.forms that return PdfFormField Modifier and Type Method Description PdfFormFieldPdfAcroForm. copyField(java.lang.String name)Creates an in-memory copy of aPdfFormField.private PdfFormFieldPdfPageFormCopier. createParentFieldCopy(PdfDictionary fieldDict, PdfDocument pdfDoc)PdfFormFieldPdfAcroForm. getField(java.lang.String fieldName)Gets aform fieldby its name.private static PdfFormFieldPdfPageFormCopier. getParentField(PdfDictionary parent, PdfDocument pdfDoc)Methods in com.itextpdf.forms that return types with arguments of type PdfFormField Modifier and Type Method Description java.util.Map<java.lang.String,PdfFormField>PdfAcroForm. getAllFormFields()Gets allform fields as aMapincluding fields kids.private java.util.Set<PdfFormField>PdfAcroForm. getAllFormFieldsWithoutNames()java.util.Collection<PdfFormField>PdfAcroForm. getFieldsForFlattening()Gets a collection ofform fields, prepared for flattening usingPdfAcroForm.partialFormFlattening(java.lang.String)method.java.util.Map<java.lang.String,PdfFormField>PdfAcroForm. getRootFormFields()Gets root fields (i.e.private java.util.Map<java.lang.String,PdfFormField>PdfAcroForm. populateFormFieldsMap()private java.util.Set<PdfFormField>PdfAcroForm. prepareFieldsForFlattening(PdfFormField field)Methods in com.itextpdf.forms with parameters of type PdfFormField Modifier and Type Method Description voidPdfAcroForm. 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.private voidPdfPageFormCopier. copyParentFormField(java.util.Map<java.lang.String,PdfFormField> fieldsTo, PdfAnnotation annot, PdfFormField parentField)private booleanPdfAcroForm. needToAddToAcroform(PdfFormField field, boolean throwExceptionOnError)private java.util.Set<PdfFormField>PdfAcroForm. prepareFieldsForFlattening(PdfFormField field)private voidPdfAcroForm. processKids(PdfFormField field, PdfPage page)voidPdfAcroForm. replaceField(java.lang.String name, PdfFormField field)Replaces thePdfFormFieldof a certain name with anotherPdfFormField.Method parameters in com.itextpdf.forms with type arguments of type PdfFormField Modifier and Type Method Description private voidPdfPageFormCopier. copyField(java.util.Map<java.lang.String,PdfFormField> fieldsFrom, java.util.Map<java.lang.String,PdfFormField> fieldsTo, PdfAnnotation currentAnnot)private voidPdfPageFormCopier. copyParentFormField(java.util.Map<java.lang.String,PdfFormField> fieldsTo, PdfAnnotation annot, PdfFormField parentField) -
Uses of PdfFormField in com.itextpdf.forms.fields
Subclasses of PdfFormField in com.itextpdf.forms.fields Modifier and Type Class Description classPdfButtonFormFieldAn interactive control on the screen that raises events and/or can retain data.classPdfChoiceFormFieldAn AcroForm field type representing any type of choice field.classPdfSignatureFormFieldAn AcroForm field containing signature data.classPdfTextFormFieldAn AcroForm field containing textual data.Fields in com.itextpdf.forms.fields declared as PdfFormField Modifier and Type Field Description protected PdfFormFieldAbstractPdfFormField. parentParent form field.Methods in com.itextpdf.forms.fields that return PdfFormField Modifier and Type Method Description PdfFormFieldPdfButtonFormField. addKid(AbstractPdfFormField kid)Adds a new kid to theKidsarray property from aAbstractPdfFormField.PdfFormFieldPdfFormField. addKid(AbstractPdfFormField kid)Adds a new kid to theKidsarray property from aAbstractPdfFormField.PdfFormFieldPdfFormField. addKid(AbstractPdfFormField kid, boolean throwExceptionOnError)Adds a new kid to theKidsarray property from aAbstractPdfFormField.PdfFormFieldPdfFormField. 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.PdfFormFieldPdfFormFactory. createFormField(PdfWidgetAnnotation widget, PdfDocument document)Creates a form field as a parent of aPdfWidgetAnnotation.PdfFormFieldPdfFormFactory. createFormField(PdfDictionary dictionary)Creates a form field as a wrapper object around aPdfDictionary.PdfFormFieldPdfFormFactory. createFormField(PdfDocument document)Create a minimal, emptyPdfFormField.PdfFormFieldNonTerminalFormFieldBuilder. createNonTerminalFormField()Creates non-terminal form field based on provided parameters.PdfFormFieldPdfFormField. getChildField(java.lang.String fieldName)Gets the child field of form field.PdfFormFieldAbstractPdfFormField. getParentField()Gets the parent field.static PdfFormFieldPdfFormField. makeFormField(PdfObject pdfObject, PdfDocument document)Creates a (subtype of)PdfFormFieldobject.PdfFormFieldPdfFormField. setAdditionalAction(PdfName key, PdfAction action)Sets an additional action for the form field.PdfFormFieldPdfFormField. setAlternativeName(java.lang.String name)Changes the alternate name of the field to the specified value.PdfFormFieldPdfFormField. setCheckType(CheckBoxType checkType)Changes the type of graphical marker used to mark a checkbox as 'on'.PdfFormFieldPdfFormField. setDefaultStyle(PdfString defaultStyleString)Sets a default style string, as described in "Rich Text Strings" section of Pdf spec.PdfFormFieldPdfFormField. setDefaultValue(PdfObject value)Sets the default fallback value for the form field.PdfFormFieldPdfFormField. setFieldFlag(int flag)Adds a flag, or combination of flags, for the form field.PdfFormFieldPdfFormField. setFieldFlag(int flag, boolean value)Adds or removes a flag, or combination of flags, for the form field.PdfFormFieldPdfFormField. setFieldFlags(int flags)Sets a flag, or combination of flags, for the form field.PdfFormFieldPdfFormField. setFieldName(java.lang.String name)Changes the name of the field to the specified value.private PdfFormFieldPdfFormField. setFieldValue(java.lang.String value, boolean generateAppearance)PdfFormFieldPdfFormField. 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-justifiedPdfFormFieldPdfFormField. setMappingName(java.lang.String name)Changes the mapping name of the field to the specified value.PdfFormFieldPdfFormField. setNoExport(boolean noExport)Sets the NoExport flag, specifying whether or not exporting is forbidden.PdfFormFieldPdfFormField. setOptions(PdfArray options)Sets options for the form field.PdfFormFieldPdfFormField. setReadOnly(boolean readOnly)Sets the ReadOnly flag, specifying whether or not the field can be changed.PdfFormFieldPdfFormField. setRequired(boolean required)Sets the Required flag, specifying whether or not the field must be filled in.PdfFormFieldPdfFormField. setRichText(PdfObject richText)Sets a rich text string, as described in "Rich Text Strings" section of Pdf spec.PdfFormFieldPdfFormField. setValue(java.lang.String value)Sets a value to the field and generating field appearance if needed.PdfFormFieldPdfFormField. setValue(java.lang.String value, boolean generateAppearance)Sets a value to the field (and fields with the same names) and generates field appearance if needed.PdfFormFieldPdfFormField. setValue(java.lang.String value, PdfFont font, float fontSize)Set text field value with given font and size.PdfFormFieldPdfFormField. setValue(java.lang.String value, java.lang.String displayValue)Sets the field value and the display string.Methods in com.itextpdf.forms.fields that return types with arguments of type PdfFormField Modifier and Type Method Description java.util.List<PdfFormField>PdfFormField. getAllChildFormFields()Gets all childFields of this object, including the children of the children but not annotations.java.util.List<PdfFormField>PdfFormField. getChildFormFields()Gets all child form fields of this form field.Methods in com.itextpdf.forms.fields with parameters of type PdfFormField Modifier and Type Method Description static 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.(package private) voidTerminalFormFieldBuilder. setPageToField(PdfFormField field)voidAbstractPdfFormField. setParent(PdfFormField parent)Sets a parentPdfFormFieldfor the current object.Method parameters in com.itextpdf.forms.fields with type arguments of type PdfFormField Modifier and Type Method Description (package private) PdfStringAbstractPdfFormField. getFieldName(java.util.Set<PdfFormField> visited)Gets the current field name. -
Uses of PdfFormField in com.itextpdf.forms.fields.merging
Methods in com.itextpdf.forms.fields.merging with parameters of type PdfFormField Modifier and Type Method Description booleanAddIndexStrategy. 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 PdfFormField Modifier and Type Method Description protected 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.(package private) voidAbstractTextFieldRenderer. applyDefaultFieldProperties(PdfFormField inputField)Applies the default field properties. -
Uses of PdfFormField in com.itextpdf.signatures
Methods in com.itextpdf.signatures with parameters of type PdfFormField Modifier and Type Method Description protected voidPdfSigner. applyAccessibilityProperties(PdfFormField formField, IAccessibleElement modelElement, PdfDocument pdfDocument)AppliesAccessibilityPropertiesfor provided signature field.booleanSignatureUtil.ContentsChecker. checkWhetherSignatureCoversWholeDocument(PdfFormField signatureField)
-