# TimeStamper

## Content

# Class: TimeStamper

Generates time stamp signature embedded into a PDF document.

## Constructors

### Constructor

```ts
new TimeStamper(serverUrl): TimeStamper;
```

Creates a new TimeStamper.

#### Parameters

##### serverUrl

`string`

The uniform resource identifier for the Time Stamping Authority (TSA) server providing the time-stamp.

#### Returns

`TimeStamper`

### Constructor

```ts
new TimeStamper(provider): TimeStamper;
```

Creates a new TimeStamper.

#### Parameters

##### provider

[`TimeStampProviderBase`](../interfaces/TimeStampProviderBase)

The [TimeStampProviderBase](../interfaces/TimeStampProviderBase) object providing the time-stamp.

#### Returns

`TimeStamper`

## Accessors

### signatureAppearance

#### Get Signature

```ts
get signatureAppearance(): SignatureAppearance;
```

Gets a [SignatureAppearance](../type-aliases/SignatureAppearance) object defining the visual appearance
of the generated signature.
By default this property is initialized with a default instance of the [SignatureAppearance](../type-aliases/SignatureAppearance) class.

##### Returns

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

#### Set Signature

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

Sets a [SignatureAppearance](../type-aliases/SignatureAppearance) object defining the visual appearance
of the generated signature.
By default this property is initialized with a default instance of the [SignatureAppearance](../type-aliases/SignatureAppearance) class.

##### Parameters

###### value

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

##### Returns

`void`

***

### signatureField

#### Get Signature

```ts
get signatureField(): Field;
```

Gets an AcroForm field used to store a digital signature.
If this value is set to <b>null</b>,
the field with a unique name will be created automatically.
That field will have no associated [WidgetAnnotation](WidgetAnnotation),
so the signature will be invisible.

##### Returns

[`Field`](Field)

#### Set Signature

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

Sets an AcroForm field used to store a digital signature.
If this value is set to <b>null</b>,
the field with a unique name will be created automatically.
That field will have no associated [WidgetAnnotation](WidgetAnnotation),
so the signature will be invisible.

##### Parameters

###### value

[`Field`](Field)

##### Returns

`void`

***

### timeStampProvider

#### Get Signature

```ts
get timeStampProvider(): TimeStampProviderBase;
```

Gets a [TimeStampProviderBase](../interfaces/TimeStampProviderBase) object used to obtain a time-stamp token.

##### Returns

[`TimeStampProviderBase`](../interfaces/TimeStampProviderBase)

#### Set Signature

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

Sets a [TimeStampProviderBase](../interfaces/TimeStampProviderBase) object used to obtain a time-stamp token.

##### Parameters

###### value

[`TimeStampProviderBase`](../interfaces/TimeStampProviderBase)

##### Returns

`void`
