# DsPdf

## Content

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

***

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

# Class: DsPdf

Provides access to the core Wasm module of DsPdfJS.

## Properties

### instance

> `static` **instance**: `DsPdf` \| `null`

The singleton instance of the DsPdf class.

This static property holds the currently active instance of the DsPdf class.
It is null when no instance has been created yet or after the instance has been properly disposed.

## Accessors

### isConnected

#### Get Signature

> **get** **isConnected**(): `boolean`

Checks whether the DsPdf module is connected.

##### Returns

`boolean`

***

### version

#### Get Signature

> **get** **version**(): `string`

Returns the current version of the DsPdf WASM API.

##### Returns

`string`

The DsPdf WASM API version string, e.g. "9.1.0".

## Methods

### checkDsPdf()

> `static` **checkDsPdf**(): `DsPdf`

Checks and returns a valid DsPdf instance

#### Returns

`DsPdf`

#### Throws

Error if no valid instance available
