PDFs thankfully can be locked to prevent people like you copy pasting the contents...
Anyway, giving you the benefit of the doubt that your intentions are legitimate, Google the term "OCR" or the expansion of the acronym.... "optical character recognition"