import codecs import os import PyPDF2 as PyPDF2 def mergePdf(path,files,saveName): pdfwriter = PyPDF2.PdfFileWriter() for item in files: pdfreader = PyPDF2.PdfFileReader(open(path + '/' + item,"rb")) for page in range(pdfreader.numPages): pdfwriter.addPage(pdf…