I'm trying to do something but have little idea of how to achieve it. Namely, i' trying to capture the index of where in a pdf document (loaded on the web page) the user's mouse was clicked and where it was released.
Example:
"This is a great placeholding text that serves as an example"
Say the user highlights the substring "great placeholding text", how can I capture:
the content of the highlighted text, in this example "great placeholding text"
The index at which the mouse was pressed and released
In essence I'm trying to allow users to highlight and easily save parts of the pdf document (as well as the position of the portion of text they have saved) for later reference.
Any ideas would be much much appreciated, thanks all!