property AllowUserTextSelection: Boolean;
When True (the default), the viewer reacts to selection-related user input:
Cursor to crIBeam.Ctrl+A selects the current page (both pages in spread display modes).Ctrl+C copies the selection to the Windows clipboard as CF_UNICODETEXT.Shift+Left / Right extends the selection one character; Shift+Home / End extends to the visual line edge.When False, all of the above is silently disabled and the viewer behaves like v1.16.x — pan-only, link-click only, form-fill only. Kiosk hosts, preview panes, and read-only contexts can pin this flag to False at design time.
This flag only gates user input. The code-level public API (SelectAll, ClearSelection, CopySelectionToClipboard) continues to work regardless of the flag value, so a host application can disable user-driven selection while still building "Select All / Copy" toolbar buttons that drive the same API.
True and the form-fill subsystem keeps priority.Ctrl+C / Ctrl+A / Shift+arrows for its own selection.Active := True; selection clears on SetPdf, SetPageNumber, SetActive(False), and DisplayMode changes.
begin
PdfView1.AllowUserTextSelection := True;
PdfView1.SelectionColor := clHighlight;
PdfView1.OnSelectionChange := DoSelectionChange;
PdfView1.Active := True;
end;