This question is specific to pdf.js, a javascript based pdf renderer. I\'m building a custom version where I need to extract the text that I select inside the pdf.
pdf.js has a file viewer.html inside the directory web.
you have to do the following two steps in viwer.html