Skip to content

Instantly share code, notes, and snippets.

@Vages
Last active Feb 14, 2017
Embed
What would you like to do?
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