2024 iThome 鐵人賽
分享至
pip install pypdf
from pypdf import PdfMerger
pdfs = ['A.pdf', 'B.pdf', 'C.pdf']
merger = PdfMerger()
for pdf in pdfs: merger.append(pdf)
merger.write("combined.pdf")
merger.close()
IT邦幫忙