How to select text in PDF files

I have JSON + PDF files and created app with PDF files reading.
But I can’t make possible to select text in PDF files.
Any suggestions, how to select text in PDF files?