Answers for "python, pypdf2, combine files, keeps adding files"

0

python merge pdfs

from PyPDF2 import PdfFileMerger, PdfFileReader
merger = PdfFileMerger()

merger.append(PdfFileReader(open(filename1, 'rb')))
merger.append(PdfFileReader(open(filename2, 'rb')))

merger.write("merged.pdf")
Posted by: Guest on October-31-2020

Code answers related to "python, pypdf2, combine files, keeps adding files"

Python Answers by Framework

Browse Popular Code Answers by Language