Table of Contents

Class FormFieldBuilder<T>

Namespace
iText.Forms.Fields
Assembly
itext.forms.dll

Builder for form field.

public abstract class FormFieldBuilder<T> where T : FormFieldBuilder<T>

Type Parameters

T

specific form field builder which extends this class.

Inheritance
FormFieldBuilder<T>
Derived
Inherited Members

Constructors

FormFieldBuilder(PdfDocument, string)

Creates builder for PdfFormField creation.

protected FormFieldBuilder(PdfDocument document, string formFieldName)

Parameters

document PdfDocument

document to be used for form field creation

formFieldName string

name of the form field

Methods

GetConformanceLevel()

Gets conformance level for form field creation.

[Obsolete("since 8.0.4 will return iText.Kernel.Pdf.IConformanceLevel in next major release")]
public virtual PdfAConformanceLevel GetConformanceLevel()

Returns

PdfAConformanceLevel

instance of PdfAConformanceLevel to be used for form field creation

GetDocument()

Gets document to be used for form field creation.

public virtual PdfDocument GetDocument()

Returns

PdfDocument

PdfDocument instance

GetFormFieldName()

Gets name of the form field.

public virtual string GetFormFieldName()

Returns

string

name to be used for form field creation

GetGenericConformanceLevel()

Gets conformance level for form field creation.

[Obsolete("since 8.0.4 will be renamed to getConformanceLevel()")]
public virtual IConformanceLevel GetGenericConformanceLevel()

Returns

IConformanceLevel

instance of IConformanceLevel to be used for form field creation

GetThis()

Returns this builder object.

protected abstract T GetThis()

Returns

T

this builder

Remarks

Returns this builder object. Required for superclass methods.

SetConformanceLevel(PdfAConformanceLevel)

Sets conformance level for form field creation.

[Obsolete("since 8.0.4 conformance level param will change to iText.Kernel.Pdf.IConformanceLevel")]
public virtual T SetConformanceLevel(PdfAConformanceLevel conformanceLevel)

Parameters

conformanceLevel PdfAConformanceLevel

instance of PdfAConformanceLevel to be used for form field creation

Returns

T

this builder

SetGenericConformanceLevel(IConformanceLevel)

Sets conformance level for form field creation.

[Obsolete("since 8.0.4 will be renamed to setConformanceLevel")]
public virtual T SetGenericConformanceLevel(IConformanceLevel conformanceLevel)

Parameters

conformanceLevel IConformanceLevel

Instance of IConformanceLevel to be used for form field creation.

Returns

T

This builder.