# AcroForm

## Content

# Class: AcroForm

Defines properties of AcroForm within PDF document.

## Extends

- [`ObjectBase`](ObjectBase)

## Accessors

### calculationOrder

#### Get Signature

```ts
get calculationOrder(): 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

```ts
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))[]

##### Returns

`void`

***

### doc

#### Get Signature

```ts
get doc(): PdfDocument;
```

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

##### Returns

[`PdfDocument`](PdfDocument)

***

### fields

#### Get Signature

```ts
get fields(): FieldCollection;
```

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

##### Returns

[`FieldCollection`](FieldCollection)

***

### id

#### Get Signature

```ts
get id(): number;
```

Gets the reference to the object.

##### Returns

`number`

#### Inherited from

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

***

### om

#### Get Signature

```ts
get om(): ObjectManager;
```

Gets the owner [ObjectManager](ObjectManager) instance.

##### Returns

[`ObjectManager`](ObjectManager)

#### Inherited from

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

## Methods

### free()

```ts
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()

```ts
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)
