You can do easily with OCR(optical character recognition). PDF-Exange, a free PDF viewer, scans the document(when graphic) and adds a text layer. Then you can copy and paste it to a text editor.
Once in a file it can be loaded on the emulator. I have done this with the joystick driver above.
As I don't remember the way to load a basic program in Ascii, I've done a program that reads the file and prints the lines on screen, then I've pressed Enter over them....