Question
Get selected text content
Hello,
I created a plugin to add a custom menu which will get the selected text and then I can do the operation on that text.
| AVDoc avDoc = AVAppGetActiveDoc(); | |
| // if a PDF is open, get its number of pages | |
| PDDoc pdDoc = AVDocGetPDDoc(avDoc); | |
| // Get the selected text as a text select |
| PDTextSelect pdtext =static_cast<PDTextSelect>(AVDocGetSelection(avDoc)); |
Now, I want to get the actual text content with this object. How can I achieve that?
Thanks
Best Regards,
Navnath
