---
title: "go(to:on:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfview/go(to:on:)"
---

# go(to:on:)

Navigates to the specified rectangle on the specified page.

## Declaration

```swift
func go(to rect: CGRect, on page: PDFPage)
```

```swift
func go(to rect: NSRect, on page: PDFPage)
```

## Discussion

Discussion If the specified rectangle is already visible, this method does nothing. This allows you to scroll the PDFView object to a specific PDFAnnotation or PDFSelection object, because both of these objects have bounds methods that return an annotation or selection position in page space. Note that rect is specified in page-space coordinates. Page space is a 72 dpi coordinate system with the origin at the lower-left corner of the current page.

## See Also

### Using Seek in a Document

- [go(to:)](pdfkit/pdfview/go(to:)-6x8y2.md)
- [go(to:)](pdfkit/pdfview/go(to:)-5lh5d.md)
- [go(to:)](pdfkit/pdfview/go(to:)-3t5go.md)
