I'm getting the following error when I run the code. any assistance resolving would be appreciated. Thx
PS C:\temp> python fr_generate_searchable_pdf.py handwritten-note.jpg
Loading input file handwritten-note.jpg
Starting Azure Form Recognizer OCR process...
Azure Form Recognizer finished OCR text for 1 pages.
Generating searchable PDF...
Traceback (most recent call last):
File "C:\temp\fr_generate_searchable_pdf.py", line 59, in <module>
output = PdfFileWriter()
^^^^^^^^^^^^^^^
File "C:\Users\<User>\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\PyPDF2\_writer.py", line 2821, in __init__deprecation_with_replacement("PdfFileWriter", "PdfWriter", "3.0.0")
File "C:\Users\<User>\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\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\<User>\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\PyPDF2\_utils.py", line 351, in deprecation raise DeprecationError(msg)
PyPDF2.errors.DeprecationError: PdfFileWriter is deprecated and was removed in PyPDF2 3.0.0. Use PdfWriter instead.
PS C:\temp>