Merge all pdf files that are present in a dir
Merge all pdf files that are present in a dir
Often you need to join the pdfs present in a folder. Using python script it can be done in a moment. The script looks like as following,
import os from PyPDF2 import PdfFileMerger x = [a for a in os.listdir() if a.endswith(".pdf")] merger = PdfFileMerger() for pdf in x: merger.append(open(pdf, 'rb')) with open("result.pdf", "wb") as fout: merger.write(fout) fout.close()
I hope this…
View On WordPress













