How do I get positioning info of a selected text in PDF document viewer?

Q: How can I get the details (position coordinates, font styles etc)
of a selected text in document using rectangle selection mode in
PDFViewCtrl?
----------------
A: How about using PDFViewCtrl.GetSelection()? This function returns
'PDFViewCtrl.Selection' which can be used to obtain quads (GetQuads)
and selected Unicode text (GetAsUnicode/GetAsHtml). You could also use
the returned positioning info to find text and associated styles
(font, color) using TextExtractor.