Python offers several libraries that can handle PDF files. The example below uses pdfminer and python 2 on Windows 10. I found the function at the following location.
The code converts the PDF file (which I had downloaded and saved) to a text file and saves it in the same directory. It works best with PDFs which are mostly text and the text is not formatted into multiple columns.
This blog includes:
Scripts mainly in Python with a few in R covering NLP, Pandas, Matplotlib and others. See the home page for links to some of the scripts. Also includes some explanations of basic data science terminology.