---
title: numberOfCharacters
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfpage/numberofcharacters
---

# numberOfCharacters

Returns the number of characters on the page, including whitespace characters.

## Declaration

```swift
var numberOfCharacters: Int { get }
```

## See Also

### Working with Textual Content

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