getSelectedText

Get the currently selected text.
getSelectedText([out, retval] BSTR *text)
This function returns the currently selected text.

The text will be in the encoding set in the textEncoding property.

getSelectedText will throw an error if text extraction is not allowed by the PDF file.

VB6:
text = viewer.getSelectedText ' do something with the extracted text ...
selectDone
copySelection
enableSelect