# RemoteDestination Class

> A view of a page contained in a separate document.

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

```java
class RemoteDestination
```

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

## Description

A view of a page contained in a separate document. A RemoteDestination is not the same as a ViewDestination; the two objects are not interchangeable.

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

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

## Constructors

### RemoteDestination

```java
com.datalogics.PDFL.RemoteDestination.RemoteDestination(Document doc, int pageNum, String fitType, Rect r, double zoom)
```

*constructor*

**Parameters**

- `doc` ([`Document`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Document.md)): Document that the RemoteDestination will be created in.
- `pageNum` (`int`): Page number of the page in the remote document to display.
- `fitType` (`String`): Fit Type must be: "XYZ", "Fit", "FitH", "FitV", "FitR", "FitB", "FitBH", or "FitBV".
- `r` ([`Rect`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Rect.md)): Target Rectangle
- `zoom` (`double`): Zoom level

Construct a RemoteDestination.

## Methods

### delete

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

*protected*

**Parameters**

- `disposing` (`Boolean`)

**Returns:** `synchronized void`

### delete

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

**Returns:** `synchronized void`

### equals

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

**Parameters**

- `rhs` (`Object`)

**Returns:** `boolean`

### finalize

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

*protected*

**Returns:** `void`

### getDestRect

```java
Rect com.datalogics.PDFL.RemoteDestination.getDestRect()
```

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

The rectangle defining the area of the page to display. Fields not applicable to the current fit type will contain NullValue.

The destination rectangle.

### getFitType

```java
String com.datalogics.PDFL.RemoteDestination.getFitType()
```

**Returns:** `String`

The fit type string (e.g., "XYZ", "Fit", "FitH", "FitV", "FitR", "FitB", "FitBH", or "FitBV").

The fit type for the destination.

### getNULL_VALUE

```java
static double com.datalogics.PDFL.RemoteDestination.getNULL_VALUE()
```

*static*

**Returns:** `double`

Constant used for "null" values in destination rectangles or zoom.

### getPDFObject

```java
PDFObject com.datalogics.PDFL.RemoteDestination.getPDFObject()
```

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

The underlying PDFObject for this RemoteDestination.

Retrieve the PDFObject representation of this Remote Destination.

### getPageNumber

```java
int com.datalogics.PDFL.RemoteDestination.getPageNumber()
```

**Returns:** `int`

The zero-based page number for this destination in the remote document.

The page number of the destination.

### getZoom

```java
double com.datalogics.PDFL.RemoteDestination.getZoom()
```

**Returns:** `double`

The zoom level for the destination, or NullValue if not specified.

The zoom factor for the destination.

### setDestRect

```java
void com.datalogics.PDFL.RemoteDestination.setDestRect(Rect destRect)
```

**Parameters**

- `destRect` ([`Rect`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Rect.md))

**Returns:** `void`

Set the rectangle for the destination.

### setFitType

```java
void com.datalogics.PDFL.RemoteDestination.setFitType(String remoteDestFitType)
```

**Parameters**

- `remoteDestFitType` (`String`)

**Returns:** `void`

Set the fit type for the destination.

### setPageNumber

```java
void com.datalogics.PDFL.RemoteDestination.setPageNumber(int remoteDestPageNum)
```

**Parameters**

- `remoteDestPageNum` (`int`)

**Returns:** `void`

Set the page number of the destination (page numbers start at 0)

### setZoom

```java
void com.datalogics.PDFL.RemoteDestination.setZoom(double zoomFactor)
```

**Parameters**

- `zoomFactor` (`double`)

**Returns:** `void`

Set the zoom factor for the destination.

### toString

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

**Returns:** `String`

A string describing the page number, fit type, destination rectangle, and zoom factor.

Returns a string representation of this RemoteDestination.
