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

# string

Returns an NSString object representing the text on the page.

## Declaration

```swift
var string: String? { get }
```

## See Also

### Working with Textual Content

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