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?)
I am unsur
There is a solution for Python 3.5: you need pdfminer.six. Under win10 I could easy install it with
pip install pdfminer.six
You can check the installed version with
pdfminer.__version__
I haven't tested it intensively yet. But I could run the following code for the conversion pdf→text and pdf→html