---
title: selectionForEntireDocument
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfdocument/selectionforentiredocument
---

# selectionForEntireDocument

Returns a selection representing the textual content of the entire document.

## Declaration

```swift
var selectionForEntireDocument: PDFSelection? { get }
```

## See Also

### Working with Selections and Searches

- [selection(from:atCharacterIndex:to:atCharacterIndex:)](pdfkit/pdfdocument/selection(from:atcharacterindex:to:atcharacterindex:).md)
- [selection(from:at:to:at:)](pdfkit/pdfdocument/selection(from:at:to:at:).md)
- [Search Operations](pdfkit/search-operations.md)
