This is a basic implementation of pdfjs with text selection which provides a complete implementation on how to render pdf and how to render text layers with it.
Please feel free to remove any error or add something to this repo which might help someone else to get their hands on pdfjs easily