# PdfCMapTable

## Content

# Class: PdfCMapTable

Represents a CMap table.

A CMap specifies the mapping from character codes to character selectors,
it is used to extract Unicode text from PDF documents.
In most cases CMaps are fully embedded into the PDF document.
But in rare cases a CMap in a PDF is specified by a PDF name object,
where this name identifies a predefined CMap that should be known to the PDF processor.

## Extends

- [`ObjectBase`](ObjectBase)

## Accessors

### id

#### Get Signature

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

Gets the reference to the object.

##### Returns

`number`

#### Inherited from

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

***

### isPredefined

#### Get Signature

```ts
get isPredefined(): boolean;
```

Gets a value indicating whether the CMap is predefined and is specified by name in a PDF file.

##### Returns

`boolean`

***

### name

#### Get Signature

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

Gets the CMap name.

##### Returns

`string`

***

### om

#### Get Signature

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

Gets the owner [ObjectManager](ObjectManager) instance.

##### Returns

[`ObjectManager`](ObjectManager)

#### Inherited from

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

***

### vertical

#### Get Signature

```ts
get vertical(): boolean;
```

Gets a value indicating whether the PdfCMapTable defines the vertical font.

##### Returns

`boolean`

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