# ObjectBase

## Content

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

***

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

# Class: ObjectBase

Represents the base class for other DsPdf objects.

## Extended by

- [`BilevelBitmap`](BilevelBitmap)
- [`Bitmap`](Bitmap)
- [`Brush`](Brush)
- [`DrawingContext`](DrawingContext)
- [`Font`](Font)
- [`FontCollection`](FontCollection)
- [`Format`](Format)
- [`GraphicsPath`](GraphicsPath)
- [`GrayscaleBitmap`](GrayscaleBitmap)
- [`Image`](Image)
- [`Layout`](Layout)
- [`Pen`](Pen)
- [`SplitOptions`](SplitOptions)
- [`SvgDocument`](SvgDocument)
- [`Transform`](Transform)
- [`PdfDocument`](PdfDocument)
- [`PdfPage`](PdfPage)
- [`Security`](Security)
- [`SecurityHandlerBase`](SecurityHandlerBase)
- [`DefaultAppearance`](DefaultAppearance)
- [`Border`](Border)
- [`BorderEffect`](BorderEffect)
- [`AnnotationBase`](AnnotationBase)
- [`ButtonAppearance`](ButtonAppearance)
- [`AcroForm`](AcroForm)
- [`Field`](Field)
- [`SoundObject`](SoundObject)
- [`OutlineNode`](OutlineNode)
- [`EmbeddedFileStream`](EmbeddedFileStream)
- [`FileSpecification`](FileSpecification)
- [`DocAction`](DocAction)
- [`PdfImageHandler`](PdfImageHandler)
- [`FontHandler`](FontHandler)
- [`Metadata`](Metadata)
- [`DocumentInfo`](DocumentInfo)

## Accessors

### id

#### Get Signature

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

Gets the reference to the object.

##### Returns

`number`

***

### om

#### Get Signature

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

Gets the owner [ObjectManager](ObjectManager) instance.

##### Returns

[`ObjectManager`](ObjectManager)

## Methods

### free()

> **free**(): `void`

Detaches the object from the [ObjectManager](ObjectManager) and deallocates its memory, if possible.

#### Returns

`void`

***

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