Create a new folder and create a pdfToText.py file in it. Copy and paste the code in pdfToText.py in this repository to that file.
Open the Terminal:
pip install pdfminer.sixIn the same folder, add the pdf from which you want to extract text (Here the pdf used is test.pdf). Provide this pdf as a command line argument.
Run the script using:
python3 pdfToText.py test.pdfThe extracted text will be available in converted_pdf.txt