# AcroForm

## Content

[**DsPdfJS API v9.1.3**](../README)

***

[DsPdfJS API](../globals) / AcroForm

# Class: AcroForm

Defines properties of AcroForm within PDF document.

## Extends

- [`ObjectBase`](ObjectBase)

## Accessors

### calculationOrder

#### Get Signature

> **get** **calculationOrder**(): [`Field`](Field)[]

Gets or sets an array of fields that are recalculated each time when the value of any field
is changed.
The property value is calculated each time when it is requested on the base of
[Field#calculationIndex](Field#calculationindex) property of fields in the [fields](#fields) collection.
Setting the property updates the [Field#calculationIndex](Field#calculationindex) property.

##### Returns

[`Field`](Field)[]

#### Set Signature

> **set** **calculationOrder**(`value`): `void`

Gets or sets an array of fields that are recalculated each time when the value of any field
is changed.
The property value is calculated each time when it is requested on the base of
[Field#calculationIndex](Field#calculationindex) property of fields in the [fields](#fields) collection.
Setting the property updates the [Field#calculationIndex](Field#calculationindex) property.

##### Parameters

###### value

(`string` \| [`Field`](Field))[] | `null`

##### Returns

`void`

***

### doc

#### Get Signature

> **get** **doc**(): [`PdfDocument`](PdfDocument)

Gets the [PdfDocument](PdfDocument) object owning this object.

##### Returns

[`PdfDocument`](PdfDocument)

***

### fields

#### Get Signature

> **get** **fields**(): [`FieldCollection`](FieldCollection)

Gets the [FieldCollection](FieldCollection) collection containing document fields.

##### Returns

[`FieldCollection`](FieldCollection)

***

### id

#### Get Signature

> **get** **id**(): `number`

Gets the reference to the object.

##### Returns

`number`

#### Inherited from

[`ObjectBase`](ObjectBase).[`id`](ObjectBase#id)

***

### om

#### Get Signature

> **get** **om**(): [`ObjectManager`](ObjectManager)

Gets the owner [ObjectManager](ObjectManager) instance.

##### Returns

[`ObjectManager`](ObjectManager)

#### Inherited from

[`ObjectBase`](ObjectBase).[`om`](ObjectBase#om)

## Methods

### free()

> **free**(): `void`

Detaches the object from the [ObjectManager](ObjectManager) and deallocates its memory, if possible.

#### Returns

`void`

#### Inherited from

[`ObjectBase`](ObjectBase).[`free`](ObjectBase#free)

***

### rebind()

> **rebind**(`omTo`): `void`

Rebinds the object from the current [ObjectManager](ObjectManager) to the specified one.

#### Parameters

##### omTo

[`ObjectManager`](ObjectManager)

The new [ObjectManager](ObjectManager) for the object.

#### Returns

`void`

#### Inherited from

[`ObjectBase`](ObjectBase).[`rebind`](ObjectBase#rebind)
