---
title: pages
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfselection/pages
---

# pages

Returns the array of pages contained in the selection.

## Declaration

```swift
var pages: [PDFPage] { get }
```

## Discussion

Discussion Pages are sorted by index number.

## See Also

### Getting Information About a Selection

- [string](pdfkit/pdfselection/string.md)
- [attributedString](pdfkit/pdfselection/attributedstring.md)
- [bounds(for:)](pdfkit/pdfselection/bounds(for:).md)
- [selectionsByLine()](pdfkit/pdfselection/selectionsbyline().md)
- [color](pdfkit/pdfselection/color.md)
