This code merge all pdf in alphabetical order.
# pdf_merger2.py import glob from PyPDF2 import PdfFileMerger os.chdir(r"auf_comp") def merger(output_pat