NotImplementedError: only algorithm code 1 and 2 are supported in PyPDF2
问题 I have been creating a program in Python for merging 2 pdf files into a single file. Here is the code:- import os from PyPDF2 import PdfFileMerger source_dir = os.getcwd() merger = PdfFileMerger() for item in os.listdir(source_dir): if item.endswith('pdf'): merger.append(item) merger.write('completed_file.pdf') merger.close() while running the code i encountered the following error:- "F:\Python folder\Pdf_Merger\venv\Scripts\python.exe" "F:/Python folder/Pdf_Merger/main.py" Traceback (most