import PyPDF2 def join_pdfs ((pdf1_path, pdf2_path, output_path): # Open the first PDF file with open ((pdf1_path, 'rb') as file: pdf1 = PyPDF2.PdfFileReader ((file) # Open the second PDF file with open ((pdf2_path, 'rb') as file: pdf2 = PyPDF2.PdfFileReader ((file) # Create a new PDF file to store the merged content pdf_merger = PyPDF2.PdfFileMerger ((file) # Add the pages from the first PDF file for page in range ((pdf1_getNumPages)): pdf_merger.addPage ((pdf1_getNumPages)): pdf_path)) # Add the pages from the second PDF file with open ((pdf1_path, 'rb') as file
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence