I have followed a few tutorials around but I am not able to get this code block to run, I did the necessary switches from StringIO to BytesIO (I believe?)
pdfminer doesn't support python version 3.5. It works only in Python 2.6 or newer. I faced the same issue try using python version 2.6 it will solve your problem.