Sir,some errors occur
Traceback (most recent call last):
File "c:\Users\php\PycharmProjects\newforum\new.py", line 15, in <module>
pdf_reader = PyPDF2.PdfFileReader(pdf_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\php\PycharmProjects\pythonwork\benv\Lib\site-packages\PyPDF2\reader.py", line 1974, in __init_
deprecation_with_replacement("PdfFileReader", "PdfReader", "3.0.0")
File "C:\Users\php\PycharmProjects\pythonwork\benv\Lib\site-packages\PyPDF2\_utils.py", line 369, in deprecation_with_replacement
deprecation(DEPR_MSG_HAPPENED.format(old_name, removed_in, new_name))
File "C:\Users\php\PycharmProjects\pythonwork\benv\Lib\site-packages\PyPDF2\_utils.py", line 351, in deprecation
raise DeprecationError(msg)
PyPDF2.errors.DeprecationError: PdfFileReader is deprecated and was removed in PyPDF2 3.0.0. Use PdfReader instead.