title: How can I use Tika package(https://github.com/chrismattmann/tika-python) in python(2.7) to parse PDF files?
body: <p>I'm trying to parse a few PDF files that contain engineering drawings to obtain text data in the files. I tried using TIKA as a jar with python and using it with the jnius package (using this tutorial here: 
  <a href="http://www.hackzine.org/using-apache-tika-from-python-with-jnius.html" rel="nofollow">http://www.hackzine.org/using-apache-tika-from-python-with-jnius.html</a>) but the code throws an error.</p>
  
  <p>Using the TIKA package however I was able to pass files and parse them but Python is only able to extract metadata and when asked to parse content, Python returns output "none". It is able to perfectly parse .txt files but fails for content extraction for PDFs. Here's the code</p>
  
  <pre><code>import tika
  tika.initVM()
  from tika import parser
  parsed = parser.from_file('/path/to/file')
  print parsed["metadata"]
  print parsed["content"]
  </code></pre>
  
  <p>Do I require additional packages/codelines to be able to extract the data?</p>