title: How to implement ctrl click behavior to copy text from an embedded pdf in a webapp?
body: <p>I have a requirement for a webapp to implement the following behavior:</p>
  
  <p>After a webform is opened with an embedded PDF object is shown in the browser the user needs to be able to select a text in the document with a <kbd>ctrl</kbd> + <kbd>mouse click</kbd> after which the selected text is copied to an inputfield in the same webform that the embedded PDF object is shown.</p>
  
  <p>Are there API's out there (preferably open source) that implement this behavior? Can I meet this requirement using techniques like JSP, JSF, PrimeFaces, Javascript or HTML5 and how would I do that?</p>