# DocumentInfo

## Content

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

***

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

# Class: DocumentInfo

Contains information about the document. This information includes
the document author, title, keywords, etc.

## Extends

- [`ObjectBase`](ObjectBase)

## Constructors

### Constructor

> **new DocumentInfo**(`docInfoProperties?`): `DocumentInfo`

Creates a new DocumentInfo object with specified properties.

#### Parameters

##### docInfoProperties?

[`DocumentInfoProperties`](../type-aliases/DocumentInfoProperties)

The optional settings for creating DocumentInfo.

#### Returns

`DocumentInfo`

#### Overrides

`ObjectBase.constructor`

### Constructor

> **new DocumentInfo**(`om`, `docInfoProperties?`): `DocumentInfo`

Creates a new DocumentInfo object with specified properties.

#### Parameters

##### om

[`ObjectManager`](ObjectManager)

An object manager that controls the lifetime of the DocumentInfo object.

##### docInfoProperties?

[`DocumentInfoProperties`](../type-aliases/DocumentInfoProperties)

The optional settings for creating DocumentInfo.

#### Returns

`DocumentInfo`

#### Overrides

`ObjectBase.constructor`

## Accessors

### author

#### Get Signature

> **get** **author**(): `string` \| `null`

Gets or sets the name of the person that created the document.

##### Returns

`string` \| `null`

#### Set Signature

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

Gets or sets the name of the person that created the document.

##### Parameters

###### value

`string` | `null`

##### Returns

`void`

***

### createDate

#### Get Signature

> **get** **createDate**(): [`PdfDateTime`](../type-aliases/PdfDateTime) \| `null`

Gets or sets the creation date and time of the document.

##### Returns

[`PdfDateTime`](../type-aliases/PdfDateTime) \| `null`

#### Set Signature

> **set** **createDate**(`date`): `void`

Gets or sets the creation date and time of the document.

##### Parameters

###### date

[`PdfDateTime`](../type-aliases/PdfDateTime) | `null`

##### Returns

`void`

***

### creator

#### Get Signature

> **get** **creator**(): `string` \| `null`

Gets or sets the name of the application that created the original document.

##### Returns

`string` \| `null`

#### Set Signature

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

Gets or sets the name of the application that created the original document.

##### Parameters

###### value

`string` | `null`

##### Returns

`void`

***

### id

#### Get Signature

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

Gets the reference to the object.

##### Returns

`number`

#### Inherited from

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

***

### keywords

#### Get Signature

> **get** **keywords**(): `string` \| `null`

Gets or sets keywords (separated by comma) associated with the document.

##### Returns

`string` \| `null`

#### Set Signature

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

Gets or sets keywords (separated by comma) associated with the document.

##### Parameters

###### value

`string` | `null`

##### Returns

`void`

***

### modifyDate

#### Get Signature

> **get** **modifyDate**(): [`PdfDateTime`](../type-aliases/PdfDateTime) \| `null`

Gets or sets the date and time the document was most recently modified.

##### Returns

[`PdfDateTime`](../type-aliases/PdfDateTime) \| `null`

#### Set Signature

> **set** **modifyDate**(`date`): `void`

Gets or sets the date and time the document was most recently modified.

##### Parameters

###### date

[`PdfDateTime`](../type-aliases/PdfDateTime) | `null`

##### Returns

`void`

***

### om

#### Get Signature

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

Gets the owner [ObjectManager](ObjectManager) instance.

##### Returns

[`ObjectManager`](ObjectManager)

#### Inherited from

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

***

### producer

#### Get Signature

> **get** **producer**(): `string` \| `null`

Gets or sets the name of the application that created the document.

##### Returns

`string` \| `null`

#### Set Signature

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

Gets or sets the name of the application that created the document.

##### Parameters

###### value

`string` | `null`

##### Returns

`void`

***

### subject

#### Get Signature

> **get** **subject**(): `string` \| `null`

Gets or sets the subject of the document.

##### Returns

`string` \| `null`

#### Set Signature

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

Gets or sets the subject of the document.

##### Parameters

###### value

`string` | `null`

##### Returns

`void`

***

### title

#### Get Signature

> **get** **title**(): `string` \| `null`

Gets or sets the title of the document.

##### Returns

`string` \| `null`

#### Set Signature

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

Gets or sets the title of the document.

##### Parameters

###### value

`string` | `null`

##### Returns

`void`

## 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)

***

### reset()

> **reset**(): `void`

Resets properties of this DocumentInfo object to default values.

#### Returns

`void`
