---
title: "bounds(for:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfselection/bounds(for:)"
---

# bounds(for:)

Returns the bounds of the selection on the specified page.

## Declaration

```swift
func bounds(for page: PDFPage) -> CGRect
```

```swift
func bounds(for page: PDFPage) -> NSRect
```

## Discussion

Discussion The selection rectangle is given in page space. Page space is a 72 dpi coordinate system with the origin at the lower-left corner of the current page.

## See Also

### Getting Information About a Selection

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