---
title: "characterBounds(at:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfpage/characterbounds(at:)"
---

# characterBounds(at:)

Returns the bounds, in page space, of the character at the specified index.

## Declaration

```swift
func characterBounds(at index: Int) -> CGRect
```

```swift
func characterBounds(at index: Int) -> NSRect
```

## Discussion

Discussion In the unlikely event that there is more than one character at the specified index point, only the bounds of the first character is returned. Page space is a 72 dpi coordinate system with the origin at the lower-left corner of the current page. Note that the bounds returned are not guaranteed to have integer coordinates.

## See Also

### Working with Textual Content

- [numberOfCharacters](pdfkit/pdfpage/numberofcharacters.md)
- [string](pdfkit/pdfpage/string.md)
- [attributedString](pdfkit/pdfpage/attributedstring.md)
- [characterIndex(at:)](pdfkit/pdfpage/characterindex(at:).md)
