# ActionGoToR

## Content

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

***

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

# Class: ActionGoToR

Represents a go-to remote action similar to [ActionGoTo](ActionGoTo),
but jumps to a destination in another PDF file instead of the current file.

## Extends

- [`ActionBase`](ActionBase)

## Constructors

### Constructor

> **new ActionGoToR**(`om`): `ActionGoToR`

Creates a new ActionGoToR.

#### Parameters

##### om

[`ObjectManager`](ObjectManager)

[ObjectManager](ObjectManager) that controls the lifetime of the ActionGoToR.

#### Returns

`ActionGoToR`

#### Overrides

`ActionBase.constructor`

### Constructor

> **new ActionGoToR**(): `ActionGoToR`

Creates a new ActionGoToR.

#### Returns

`ActionGoToR`

#### Overrides

`ActionBase.constructor`

## Accessors

### dest

#### Get Signature

> **get** **dest**(): [`DestinationBase`](DestinationBase) \| `null`

Gets or sets the destination object defining the new document view.

##### Returns

[`DestinationBase`](DestinationBase) \| `null`

#### Set Signature

> **set** **dest**(`value`): `void`

Gets or sets the destination object defining the new document view.

##### Parameters

###### value

[`DestinationProperties`](../type-aliases/DestinationProperties) | [`DestinationBase`](DestinationBase) | `null`

##### Returns

`void`

***

### file

#### Get Signature

> **get** **file**(): [`FileSpecification`](FileSpecification) \| `null`

Gets or sets the value defining the another file.

##### See

 - [FileSpecification](FileSpecification)
 - [FileSpecificationProperties](../type-aliases/FileSpecificationProperties)

##### Returns

[`FileSpecification`](FileSpecification) \| `null`

#### Set Signature

> **set** **file**(`value`): `void`

Gets or sets the value defining the another file.

##### See

 - [FileSpecification](FileSpecification)
 - [FileSpecificationProperties](../type-aliases/FileSpecificationProperties)

##### Parameters

###### value

`string` | [`FileSpecificationProperties`](../type-aliases/FileSpecificationProperties) | [`FileSpecification`](FileSpecification) | `null`

##### Returns

`void`

***

### id

#### Get Signature

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

Gets the reference to the object.

##### Returns

`number`

#### Inherited from

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

***

### newWindow

#### Get Signature

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

Gets a value indicating whether to open the destination document in a new window.

##### Returns

`boolean`

#### Set Signature

> **set** **newWindow**(`value`): `void`

Gets a value indicating whether to open the destination document in a new window.

##### Parameters

###### value

`boolean`

##### Returns

`void`

***

### om

#### Get Signature

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

Gets the owner [ObjectManager](ObjectManager) instance.

##### Returns

[`ObjectManager`](ObjectManager)

#### Inherited from

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

## Methods

### free()

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

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

#### Returns

`void`

#### Inherited from

[`ActionBase`](ActionBase).[`free`](ActionBase#free)

***

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

#### Inherited from

[`ActionBase`](ActionBase).[`rebind`](ActionBase#rebind)
