# DocumentInfo

## Content

# Class: DocumentInfo

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

## Extends

- [`ObjectBase`](ObjectBase)

## Constructors

### Constructor

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

```ts
ObjectBase.constructor
```

### Constructor

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

```ts
ObjectBase.constructor
```

## Accessors

### author

#### Get Signature

```ts
get author(): string;
```

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

##### Returns

`string`

#### Set Signature

```ts
set author(value): void;
```

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

##### Parameters

###### value

`string`

##### Returns

`void`

***

### createDate

#### Get Signature

```ts
get createDate(): PdfDateTime;
```

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

##### Returns

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

#### Set Signature

```ts
set createDate(date): void;
```

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

##### Parameters

###### date

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

##### Returns

`void`

***

### creator

#### Get Signature

```ts
get creator(): string;
```

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

##### Returns

`string`

#### Set Signature

```ts
set creator(value): void;
```

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

##### Parameters

###### value

`string`

##### Returns

`void`

***

### id

#### Get Signature

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

Gets the reference to the object.

##### Returns

`number`

#### Inherited from

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

***

### keywords

#### Get Signature

```ts
get keywords(): string;
```

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

##### Returns

`string`

#### Set Signature

```ts
set keywords(value): void;
```

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

##### Parameters

###### value

`string`

##### Returns

`void`

***

### modifyDate

#### Get Signature

```ts
get modifyDate(): PdfDateTime;
```

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

##### Returns

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

#### Set Signature

```ts
set modifyDate(date): void;
```

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

##### Parameters

###### date

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

##### Returns

`void`

***

### om

#### Get Signature

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

Gets the owner [ObjectManager](ObjectManager) instance.

##### Returns

[`ObjectManager`](ObjectManager)

#### Inherited from

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

***

### producer

#### Get Signature

```ts
get producer(): string;
```

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

##### Returns

`string`

#### Set Signature

```ts
set producer(value): void;
```

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

##### Parameters

###### value

`string`

##### Returns

`void`

***

### subject

#### Get Signature

```ts
get subject(): string;
```

Gets or sets the subject of the document.

##### Returns

`string`

#### Set Signature

```ts
set subject(value): void;
```

Gets or sets the subject of the document.

##### Parameters

###### value

`string`

##### Returns

`void`

***

### title

#### Get Signature

```ts
get title(): string;
```

Gets or sets the title of the document.

##### Returns

`string`

#### Set Signature

```ts
set title(value): void;
```

Gets or sets the title of the document.

##### Parameters

###### value

`string`

##### Returns

`void`

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

***

### reset()

```ts
reset(): void;
```

Resets properties of this DocumentInfo object to default values.

#### Returns

`void`
