PyPDF2 DeprecationError

PyPDF2 DeprecationError

When I tried PyPDF2, an exception "DeprecationError" was raised. Can anybody help?

Click here for PyPi documentation.

Hi, if you replace the PdfFileReader class with PdfReader that should work. Also instead of using reader.numPages use len(reader.pages)