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

# attributedString

Returns an NSAttributedString object representing the text on the page.

## Declaration

```swift
var attributedString: NSAttributedString? { get }
```

## See Also

### Working with Textual Content

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