# RemoteGoToAction Class

> A remote go-to action is an action that includes a RemoteDestination object.

- Product: Adobe PDF Library 18
- Language: Java
- Version: APDFL18.0.5PlusP2e
- HTML page: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/RemoteGoToAction
- Version index: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/llms.txt

```java
class RemoteGoToAction : Action
```

**Namespace:** `com::datalogics::PDFL`

**Inherits from:** [`Action`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Action.md)

## Description

A remote go-to action is an action that includes a RemoteDestination object. The action associated with this object, when selected, opens a separate PDF file, or opens a web page in a browser window.

**Uses types:** [`Action`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Action.md), [`FileSpecification`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/FileSpecification.md), [`PDFDict`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/PDFDict.md), [`RemoteDestination`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/RemoteDestination.md)

## Constructors

### RemoteGoToAction

```java
com.datalogics.PDFL.RemoteGoToAction.RemoteGoToAction(FileSpecification fileSpec, RemoteDestination remoteDest)
```

*constructor*

**Parameters**

- `fileSpec` ([`FileSpecification`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/FileSpecification.md)): A FileSpecification containing the path to the remote document.
- `remoteDest` ([`RemoteDestination`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/RemoteDestination.md)): A RemoteDestination representing the destination to jump in the remote document.

General constructor.

The action's target will be the path referenced in the FileSpecification parameter. If the path is absolute, the target path will also be absolute. If the path is relative, the target path will also be relative.

Generally, the FileSpecification and RemoteDestination should be associated with the same Document, and this Document should be the same Document that contains the RemoteGoToAction. (All three objects, FileSpecification, RemoteDestination, and RemoteGoToAction, are associated with a Document at creation time, and the association cannot be changed.) The RemoteGoToAction will be associated with the same Document that the RemoteDestination parameter is associated with.

When creating the RemoteGoToAction, the FileSpecification and RemoteDestination given to the constructor must be associated with the same Document, or an exception will be thrown.

## Methods

### delete

```java
synchronized void com.datalogics.PDFL.RemoteGoToAction.delete(Boolean disposing)
```

*protected*

**Parameters**

- `disposing` (`Boolean`)

**Returns:** `synchronized void`

### delete

```java
synchronized void com.datalogics.PDFL.RemoteGoToAction.delete()
```

**Returns:** `synchronized void`

### equals

```java
boolean com.datalogics.PDFL.Action.equals(Object rhs)
```

**Parameters**

- `rhs` (`Object`)

**Returns:** `boolean`

### finalize

```java
void com.datalogics.PDFL.RemoteGoToAction.finalize()
```

*protected*

**Returns:** `void`

### getFileSpecification

```java
FileSpecification com.datalogics.PDFL.RemoteGoToAction.getFileSpecification()
```

**Returns:** [`FileSpecification`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/FileSpecification.md)

The FileSpecification associated with the RemoteGoToAction.

The FileSpecification for this action.

Generally, the FileSpecification should be associated with the same Document that contains the RemoteGoToAction. (Both FileSpecification and RemoteGoToAction are associated with a Document at creation time.)

### getNewWindow

```java
boolean com.datalogics.PDFL.RemoteGoToAction.getNewWindow()
```

**Returns:** `boolean`

True if the destination document is set to open in a new window, false otherwise.

A flag specifying whether to open the destination document in a new window.

By default, this flag is not present.

If the action's FileSpecification is not a PDF, this flag is ignored.

### getPDFDict

```java
PDFDict com.datalogics.PDFL.Action.getPDFDict()
```

**Returns:** [`PDFDict`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/PDFDict.md)

The underlying PDF dictionary for this Action.

Retrieve the PDFObject representation of this object.

### getRemoteDestination

```java
RemoteDestination com.datalogics.PDFL.RemoteGoToAction.getRemoteDestination()
```

**Returns:** [`RemoteDestination`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/RemoteDestination.md)

The RemoteDestination associated with the RemoteGoToAction.

The RemoteDestination for this action.

Generally, the RemoteDestination should be associated with the same Document that contains the RemoteGoToAction. (Both RemoteDestination and RemoteGoToAction are associated with a Document at creation time.)

### getSubtype

```java
String com.datalogics.PDFL.Action.getSubtype()
```

**Returns:** `String`

The subtype string for this action, such as "GoTo", "URI", "Launch", or "GoToR".

The action's subtype.

### setFileSpecification

```java
void com.datalogics.PDFL.RemoteGoToAction.setFileSpecification(FileSpecification fileSpec)
```

**Parameters**

- `fileSpec` ([`FileSpecification`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/FileSpecification.md)): The FileSpecification to associate with the RemoteGoToAction.

**Returns:** `void`

The FileSpecification for this action.

Generally, the FileSpecification should be associated with the same Document that contains the RemoteGoToAction. (Both FileSpecification and RemoteGoToAction are associated with a Document at creation time.)

### setNewWindow

```java
void com.datalogics.PDFL.RemoteGoToAction.setNewWindow(boolean newValue)
```

**Parameters**

- `newValue` (`boolean`): The new value for the flag.

**Returns:** `void`

A flag specifying whether to open the destination document in a new window.

By default, this flag is not present.

If the action's FileSpecification is not a PDF, this flag is ignored.

### setRemoteDestination

```java
void com.datalogics.PDFL.RemoteGoToAction.setRemoteDestination(RemoteDestination remoteDest)
```

**Parameters**

- `remoteDest` ([`RemoteDestination`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/RemoteDestination.md)): The RemoteDestination to associate with the RemoteGoToAction.

**Returns:** `void`

The RemoteDestination for this action.

Generally, the RemoteDestination should be associated with the same Document that contains the RemoteGoToAction. (Both RemoteDestination and RemoteGoToAction are associated with a Document at creation time.)

### toString

```java
String com.datalogics.PDFL.Action.toString()
```

**Returns:** `String`

A string describing this Action.

Returns a string representation of this Action. The string includes the action's subtype.
