function SelectedText: WString;
Extracts the text covered by the active selection through FPDFText_GetText and returns it as a Unicode string. For a cross-page selection, the text of the intervening pages that carry a text layer is included. The per-page slices are joined in page order with a #13#10 (CR/LF) separator so the reconstructed text reads like ordinary multi-line content
Returns an empty string when nothing is selected
FPDFText_IsGenerated) appear in the result as their literal characters — the same convention used by the lower-level Text(Start, Count) API on TPdfViewShowMessage(string(PdfView1.SelectedText));