How to Solve NameError: name 'PDFParser' is not defined -- pdfminer

Solution: Import the 'PDFParser' module

To Solve the error, add the following line to the top of your code.

from pdfminer.pdfparser import PDFParser

 

For more information:
Python pdfminer PDFParser