TdxPDFViewerSelection.AsText Method
In This Article
Returns the PDF document selection as a Unicode text string.
#Declaration
Delphi
function AsText: string;
#Returns
Type |
---|
string |
#Remarks
Call this function to obtain the currently selected text as a text string. Multiple selected text rows are returned as a single text string delimited with line break characters (i.e., #13#10 in Delphi or \n in C++Builder).
The AsText function returns an empty string if one of the following conditions is met:
The document selection is empty;
An image is selected;
Content extraction operations are forbidden for the loaded document (i.e., the document’s AllowContentExtraction property returns False).
See Also