# RemoteDestination Class

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

- Product: Adobe PDF Library 21
- Language: Modern C++
- Version: 21.4.0
- HTML page: https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/class/RemoteDestination
- Version index: https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/llms.txt

```cpp
class RemoteDestination
```

**Namespace:** `datalogics_interface`

## 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:** [`RemoteGoToAction`](https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/class/RemoteGoToAction.md)

**Uses types:** [`PDFObject`](https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/class/PDFObject.md), [`Rect`](https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/struct/Rect.md)

## Constructors

### RemoteDestination

```cpp
datalogics_interface::RemoteDestination::RemoteDestination(Document &doc, int page_number, const std::string &fit_type, const Rect &rect, double zoom)
```

*constructor*

**Parameters**

- `doc` ([`Document &`](https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/class/Document.md)): Document that the RemoteDestination will be created in.
- `page_number` (`int`): Page number of the page in the remote document to display.
- `fit_type` (`const std::string &`): Fit Type must be: "XYZ", "Fit", "FitH", "FitV", "FitR", "FitB", "FitBH", or "FitBV".
- `rect` ([`const Rect &`](https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/struct/Rect.md)): Target Rectangle
- `zoom` (`double`): Zoom level

Construct a RemoteDestination.

### RemoteDestination

```cpp
datalogics_interface::RemoteDestination::RemoteDestination(RemoteDestination &&) noexcept
```

*constructor*

**Parameters**

- (unnamed) ([`RemoteDestination &&`](https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/class/RemoteDestination.md))

### ~RemoteDestination

```cpp
datalogics_interface::RemoteDestination::~RemoteDestination()
```

*destructor*

## Fields

### null_value

```cpp
static double datalogics_interface::RemoteDestination::null_value
```

*static*

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

## Methods

### get_dest_rect

```cpp
Rect datalogics_interface::RemoteDestination::get_dest_rect() const
```

**Returns:** [`Rect`](https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/struct/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.

### get_fit_type

```cpp
std::string datalogics_interface::RemoteDestination::get_fit_type() const
```

**Returns:** `std::string`

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

The fit type for the destination.

### get_page_number

```cpp
int datalogics_interface::RemoteDestination::get_page_number() const
```

**Returns:** `int`

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

The page number of the destination.

### get_pdf_object

```cpp
std::unique_ptr< PDFObject > datalogics_interface::RemoteDestination::get_pdf_object()
```

**Returns:** [`std::unique_ptr< PDFObject >`](https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/class/PDFObject.md)

The underlying PDFObject for this RemoteDestination.

Retrieve the PDFObject representation of this Remote Destination.

### get_zoom

```cpp
double datalogics_interface::RemoteDestination::get_zoom() const
```

**Returns:** `double`

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

The zoom factor for the destination.

### operator=

```cpp
RemoteDestination & datalogics_interface::RemoteDestination::operator=(RemoteDestination &&) noexcept
```

**Parameters**

- (unnamed) ([`RemoteDestination &&`](https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/class/RemoteDestination.md))

**Returns:** [`RemoteDestination &`](https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/class/RemoteDestination.md)

### operator==

```cpp
bool datalogics_interface::RemoteDestination::operator==(const RemoteDestination &other) const
```

**Parameters**

- `other` ([`const RemoteDestination &`](https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/class/RemoteDestination.md)): The RemoteDestination to compare against.

**Returns:** `bool`

true if the two RemoteDestination objects refer to the same underlying PDF object, false otherwise.

Tests whether two RemoteDestination objects are equal.

### set_dest_rect

```cpp
void datalogics_interface::RemoteDestination::set_dest_rect(const Rect &rect)
```

**Parameters**

- `rect` ([`const Rect &`](https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/struct/Rect.md)): the rectangle for the destination

**Returns:** `void`

Set the rectangle for the destination.

### set_fit_type

```cpp
void datalogics_interface::RemoteDestination::set_fit_type(const std::string &fit_type)
```

**Parameters**

- `fit_type` (`const std::string &`): the fit type for the destination

**Returns:** `void`

Set the fit type for the destination.

### set_page_number

```cpp
void datalogics_interface::RemoteDestination::set_page_number(int page_number)
```

**Parameters**

- `page_number` (`int`): the page number of the destination (page numbers start at 0)

**Returns:** `void`

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

### set_zoom

```cpp
void datalogics_interface::RemoteDestination::set_zoom(double zoom)
```

**Parameters**

- `zoom` (`double`): the zoom factor for the destination

**Returns:** `void`

Set the zoom factor for the destination.

### to_string

```cpp
std::string datalogics_interface::RemoteDestination::to_string() const
```

**Returns:** `std::string`

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

Returns a string representation of this RemoteDestination.
