79212153

Date: 2024-11-21 16:42:58
Score: 1
Natty:
Report link

Patch Camelot: Modify the handlers.py file in the Camelot source code

Replace: from PyPDF2 import PdfFileReader with from PyPDF2 import PdfReader

Find and replace all instances of PdfFileReader with PdfReader Find and replace all instances of isEncrypted with is_encrypted Replace infile.getNumPages() with len(infile.pages) Replace PdfFileWriter with PdfWriter Replace addPage with add_page

THen restart the Kernel if in a Jupyter notebook.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: JP1