---
title: canGoToLastPage
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfview/cangotolastpage
---

# canGoToLastPage

Returns a Boolean value indicating whether the user can navigate to the last page of the document.

## Declaration

```swift
var canGoToLastPage: Bool { get }
```

## Discussion

Discussion The return value will be true unless the view is already displaying the last page.

## See Also

### Related Documentation

- [goToLastPage(_:)](pdfkit/pdfview/gotolastpage(_:).md)

### Determining Valid History Operations

- [canGoBack](pdfkit/pdfview/cangoback.md)
- [canGoForward](pdfkit/pdfview/cangoforward.md)
- [canGoToFirstPage](pdfkit/pdfview/cangotofirstpage.md)
- [canGoToNextPage](pdfkit/pdfview/cangotonextpage.md)
- [canGoToPreviousPage](pdfkit/pdfview/cangotopreviouspage.md)
