Here is the python script that can be used to extract text from a PDF.

Steps:
– Text from the PDF is read page by page
– Any non-ascii characters are removed from the text.

Input: PDF file
Output: Text from PDF file

Requirement: “PyPDF2” module is to be installed.