from PyPDF2 import PdfMerger

def merge_pdfs(pdf_list, output_path):
    """Merges multiple PDFs into a single PDF."""
    merger = PdfMerger()
    for pdf in pdf_list:
        merger.append(pdf)
    merger.write(output_path)
    merger.close()
    print(f"Merged PDF saved at {output_path}")
