Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Vages
Last active February 14, 2017 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Vages/bd98d651e513cd25f48378d99b7f9bdd to your computer and use it in GitHub Desktop.
Save Vages/bd98d651e513cd25f48378d99b7f9bdd to your computer and use it in GitHub Desktop.
Combines multiple pdf files into one
from PyPDF2 import PdfFileMerger
def merge(input_files, output_file):
merger = PdfFileMerger(strict=False)
for pdf in input_files:
merger.append(pdf)
output_file = ""
merger.write(output_file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment