This example shows you how to render a PDF with text-selection enabled, in pdf.js
No-Library (pure JS), HTML, CSS, JavaScript