This open-source Python library from Google is perfect for extracting text from anything

Smarter document extraction starts here.