I've been on it for several days + researching the internet on how to get specific information from a pdf file.
Eventually I was able to fetch all information using Python from a text file(which I created by going to the PDF file -----> File ------> Save as Text).
The question is how do I get Python to accomplish those tasks(Going to the PDF file(opening it - is quite easy open("file path"), clicking on File in the menu, and then saving the file as a text file in the same directory).
Just to be clear, I do not require the pdfminer or pypdf libraries as I have already extracted the information with the same file(after converting it manually to txt)
You can use "tabula" python library. which basically uses Java though so you have to install Java SDK and JDK.
"pip install tabula"
and import it to the python script then you can convert pdf to txt file as:
tabula.convert_into("path_or_name_of_pdf.pdf", "output.txt", output_format="csv", pages='all')
You can see other functions on google. It worked for me.
Cheers!!!
Converting a PDF file to a Text file in Python