---
title: "page(at:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfdocument/page(at:)"
---

# page(at:)

Returns the page at the specified index number.

## Declaration

```swift
func page(at index: Int) -> PDFPage?
```

## Discussion

Discussion Indexes are zero based. This method raises an exception if index is out of bounds.

## See Also

### Working with Pages

- [pageCount](pdfkit/pdfdocument/pagecount.md)
- [index(for:)](pdfkit/pdfdocument/index(for:).md)
- [insert(_:at:)](pdfkit/pdfdocument/insert(_:at:).md)
- [removePage(at:)](pdfkit/pdfdocument/removepage(at:).md)
- [exchangePage(at:withPageAt:)](pdfkit/pdfdocument/exchangepage(at:withpageat:).md)
- [pageClass](pdfkit/pdfdocument/pageclass.md)
