Optical character recognition
In simple systems, the paper documents are scanned with an image scanner. The OCR software then looks at the image and compares the shapes of the letters to stored images of letters. In this way, it makes a text file that can be edited with a normal text editor.