---
title: "init(pageIndex:at:fileURL:)"
framework: pdfkit
role: symbol
role_heading: Initializer
path: "pdfkit/pdfactionremotegoto/init(pageindex:at:fileurl:)"
---

# init(pageIndex:at:fileURL:)

Initializes the remote go-to action with the specified page index, point, and document URL.

## Declaration

```swift
init(pageIndex: Int, at point: CGPoint, fileURL url: URL)
```

```swift
init(pageIndex: Int, at point: NSPoint, fileURL url: URL)
```

## Parameters

- `pageIndex`: The page index of the remote document.
- `point`: The point on the page in the remote document.
- `url`: The URL of the remote PDF document.

## Return Value

Return Value An initialized PDFActionRemoteGoTo instance, or NULL if the object could not be initialized.

## Discussion

Discussion The PDFActionRemoteGoTo object uses a zero-based page index, not a PDFPage object. This simplifies the handling of remote destinations for documents that may not be instantiated yet.
