Last active
February 14, 2017 15:11
-
-
Save Vages/bd98d651e513cd25f48378d99b7f9bdd to your computer and use it in GitHub Desktop.
Combines multiple pdf files into one
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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