Created
September 15, 2021 08:10
-
-
Save ReemRashwan/d2414a543b504a18576836c2702ac2c4 to your computer and use it in GitHub Desktop.
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
# pip install PyPDF2 | |
from PyPDF2 import PdfFileMerger | |
pdfs = ['file1.pdf', 'file2.pdf'] | |
merger = PdfFileMerger() | |
for pdf in pdfs: | |
merger.append(pdf) | |
merger.write("result.pdf") | |
merger.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment