title: Python PIL can't open PDFs for some reason
body: <p>So my program is able to open PNGs but not PDFs, so I made this just to test, and it still isn't able to open even a simple PDF. And I don't know why.</p>
  
  <pre><code>from PIL import Image
  
  with Image.open(r"Adams, K\a.pdf") as file:
      print file
  
  Traceback (most recent call last):
    File "C:\Users\Hayden\Desktop\Scans\test4.py", line 3, in &lt;module&gt;
      with Image.open(r"Adams, K\a.pdf") as file:
    File "C:\Python27\lib\site-packages\PIL\Image.py", line 2590, in open
      % (filename if filename else fp))
  IOError: cannot identify image file 'Adams, K\\a.pdf'
  </code></pre>
  
  <p>After trying PyPDF2 as suggested (Thanks for the link by the way), I am getting this error with my code.
      import PyPDF2</p>
  
  <pre><code>pdf_file= open(r"Adams, K (6).pdf", "rb")
  read_pdf= PyPDF2.PdfFileReader(pdf_file)
  
  number_of_pages = read_pdf.getNumPages()
  print number_of_pages
  
  
  Xref table not zero-indexed. ID numbers for objects will be corrected. [pdf.py:1736]
  </code></pre>