title: Whitespace gone from PDF extraction, and strange word interpretation
body: <p>Using the snippet below, I've attempted to extract the text data from <a href="http://dl.dropbox.com/u/6160029/Aggarwal%20et%20al.%20-%202008%20-%20Asynchronous%20decoding%20of%20dexterous%20finger%20movements%20using%20M1%20neurons.pdf" rel="noreferrer">this</a> PDF file.</p>
  
  <pre><code>import pyPdf
  
  def get_text(path):
      # Load PDF into pyPDF
      pdf = pyPdf.PdfFileReader(file(path, "rb"))
      # Iterate pages
      content = ""
      for i in range(0, pdf.getNumPages()):
          content += pdf.getPage(i).extractText() + "\n"  # Extract text from page and add to content
      # Collapse whitespace
      content = " ".join(content.replace(u"\xa0", " ").strip().split())
      return content
  </code></pre>
  
  <p>The <a href="http://paste.ubuntu.com/1047657/" rel="noreferrer">output I obtain</a>, however,is devoid of whitespace between most of the words. This makes it difficult to perform natural language processing on the text (my ultimate goal, here).</p>
  
  <p>Also, the 'fi' in the word 'finger' is consistently interpreted as something else. This is rather problematic since this paper is about spontaneous finger movements...</p>
  
  <p>Does anybody know why this might be happening? I don't even know where to start!</p>