Skip to content

Instantly share code, notes, and snippets.

@standbyme
Created June 9, 2017 08:30
Show Gist options
  • Save standbyme/7b6f2dcff3ff364dbe0866b91789654e to your computer and use it in GitHub Desktop.
Save standbyme/7b6f2dcff3ff364dbe0866b91789654e to your computer and use it in GitHub Desktop.
import sys
from PyPDF2 import PdfFileMerger
PDFMerger = PdfFileMerger()
filePathList = sys.argv[1:]
for filePath in filePathList:
PDFMerger.append(filePath)
with open("Report.pdf", "wb") as output:
PDFMerger.write(output)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment