Class FormFieldBuilder>

java.lang.Object
com.itextpdf.forms.fields.FormFieldBuilder
Type Parameters:
T - specific form field builder which extends this class.
Direct Known Subclasses:
NonTerminalFormFieldBuilder, TerminalFormFieldBuilder

public abstract class FormFieldBuilder> extends Object
Builder for form field.
  • Constructor Details

    • FormFieldBuilder

      protected FormFieldBuilder (PdfDocument document, String formFieldName)
      Creates builder for PdfFormField creation.
      Parameters:
      document - document to be used for form field creation
      formFieldName - name of the form field
  • Method Details

    • getDocument

      public PdfDocument getDocument()
      Gets document to be used for form field creation.
      Returns:
      PdfDocument instance
    • getFormFieldName

      public String getFormFieldName()
      Gets name of the form field.
      Returns:
      name to be used for form field creation
    • getConformanceLevel

      @Deprecated public PdfAConformanceLevel getConformanceLevel()
      Deprecated.
      since 8.0.4 will return IConformanceLevel in next major release
      Gets conformance level for form field creation.
      Returns:
      instance of PdfAConformanceLevel to be used for form field creation
    • getGenericConformanceLevel

      @Deprecated public IConformanceLevel getGenericConformanceLevel()
      Deprecated.
      since 8.0.4 will be renamed to getConformanceLevel()
      Gets conformance level for form field creation.
      Returns:
      instance of IConformanceLevel to be used for form field creation
    • setConformanceLevel

      @Deprecated public T setConformanceLevel (PdfAConformanceLevel conformanceLevel)
      Deprecated.
      since 8.0.4 conformance level param will change to IConformanceLevel
      Sets conformance level for form field creation.
      Parameters:
      conformanceLevel - instance of PdfAConformanceLevel to be used for form field creation
      Returns:
      this builder
    • setGenericConformanceLevel

      @Deprecated public T setGenericConformanceLevel (IConformanceLevel conformanceLevel)
      Deprecated.
      since 8.0.4 will be renamed to setConformanceLevel
      Sets conformance level for form field creation.
      Parameters:
      conformanceLevel - Instance of IConformanceLevel to be used for form field creation.
      Returns:
      This builder.
    • getThis

      protected abstract T getThis()
      Returns this builder object. Required for superclass methods.
      Returns:
      this builder