Clears the selection.
Copies the selection to the clipboard. Resolves false if empty or copying is not permitted.
Whether the selection is empty.
The selected span as page/character endpoints, or null when nothing is selected.
Per-page pieces of the selection, with bounds and character rects for drawing your own UI.
Selects the whole document (loads every page's text).
The selected text, or ''. Resolved asynchronously — see the note below.
Selection state and actions returned by usePdfSelection.