Tkinter Tutorial Python Pdfminer3k
Tkinter Open File. The askopenfilename function to creates an file dialog object. The extensions are shown in the bottom of the form. Python 2.7 version. In this tutorial, we will learn how to develop graphical user interfaces by writing some Python GUI examples using the Tkinter package. Tkinter package is shipped with Python as a standard package, so we don't need to install anything to use it.
Since I want to move from python 2 to 3, I tried to work with pdfmine.3kr in python 3.4. It seems like they have edited everything. Their change logs do not reflect the changes they have done but I had no success in parsing pdf with pdfminer3k. For example:
They have moved PDFDocument into pdfparser (sorry, if I spell incorrectly). PDFPage used to have create_pages method which is gone now. All I can see inside PDFPage are internal methods. Does anybody has a working example of pdfminer3k? It seems like there is no new documentation to reflect any of the changes.
2 Answers
If you are interested in reading text from a pdf file the following code works with pdfminer3k using python 3.4.
Perhaps,you could use pdfminer.six.It's description:
fork of PDFMiner using six for Python 2+3 compatibility
After installing it using pip:
pip install pdfminer.six
The usage of it is just like pdfminer, at least in my code.
Hope this could save your day :)