# AcroForm

jsPDF AcroForm Plugin

Source:
  - modules/acroform.js, line 10

### Classes

AcroFormButton
AcroFormCheckBox
AcroFormChoiceField
AcroFormComboBox
AcroFormEditBox
AcroFormField
AcroFormListBox
AcroFormPasswordField
AcroFormPDFObject
AcroFormPushButton
AcroFormRadioButton
AcroFormTextField

### Members

#### (inner) getKeyValueListForStream

Source:
  - modules/acroform.js, line 844

Returns an key-value-List of all non-configurable Variables from the Object

#### (inner) setBit

Source:
  - modules/acroform.js, line 62

Bit-Operations

### Methods

#### addField(fieldObject) → {jsPDF}

Source:
  - modules/acroform.js, line 3101

Add an AcroForm-Field to the jsPDF-instance

##### Parameters:

Name | Type | Description
--- | --- | ---
`fieldObject` | Object |

##### Returns:

Type
  jsPDF

#### (inner) AcroFormDictionaryCallback()

Source:
  - modules/acroform.js, line 525

Adds /Acroform X 0 R to Document Catalog, and creates the AcroForm Dictionary

#### (inner) calculateFontSpace(text, fontsize) → {TextMetrics}

Source:
  - modules/acroform.js, line 409

Small workaround for calculating the TextMetric approximately.

##### Parameters:

Name | Type | Description
--- | --- | ---
`text` |  |
`fontsize` |  |

##### Returns:

(Has Height and Width)

Type
  TextMetrics

#### (inner) createAnnotationReference()

Source:
  - modules/acroform.js, line 482

Create the Reference to the widgetAnnotation, so that it gets referenced in the Annot[] int the+ (Requires the Annotation Plugin)

#### (inner) createFieldCallback()

Source:
  - modules/acroform.js, line 540

Creates the single Fields and writes them into the Document

If fieldArray is set, use the fields that are inside it instead of the fields from the AcroRoot (for the FormXObjects...)