
I Stopped Manually Merging PDFs. Here's The 50-Line CLI I Built Instead.
I Stopped Manually Merging PDFs. Here's The 50-Line CLI I Built Instead. Last month I was processing contract PDFs. Simple task: Take 20 scanned documents, combine them into one file, send to lawyer. Using Adobe Reader: 20 minutes of clicking. Open file. Merge menu. Add document. Repeat 20 times. Export. Using my CLI tool: 5 seconds. python pdf_merger.py --input documents/ --output merged.pdf Done. The difference between me clicking buttons and one line of code is 19 minutes and 55 seconds. But here's what's actually interesting: That 20 minutes per document job happens every week. So I was wasting 17 hours per year on PDF merging. At $50/hour, that's $850/year I was losing to clicking. The Problem PDF Merging Is Trying To Solve You have PDFs scattered everywhere. Documents: Contracts, invoices, receipts (need to combine for records) Scans: Multiple photos of the same document (need to be one file) Reports: Chapters split into files (need to bind them) Compliance: Monthly docs stacked
Continue reading on Dev.to Python
Opens in a new tab




