One pitfall you're going to run into is the use of BufferedReader. That class is no good for reading binary files (such as PDF), it's only good for reading plain ASCII text files. So you'll want to...