Docs de PDFiumVCL

AllowUserTextSelection property

Esta entrada API conserva identificadores, firmas, bloques de código y términos PDF en su forma original.
Component: TPdfView  ·  Unit: PDFium
Gates user-input-driven text selection in the viewer.

Syntax

property AllowUserTextSelection: Boolean;

Description

When True (the default), the viewer reacts to selection-related user input:

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.

Remarks

Example

begin
  PdfView1.AllowUserTextSelection := True;
  PdfView1.SelectionColor := clHighlight;
  PdfView1.OnSelectionChange := DoSelectionChange;
  PdfView1.Active := True;
end;

See Also

SelectionColor, OnSelectionChange, HasSelection, SelectAll, ClearSelection, SelectedText, CopySelectionToClipboard