This project provides a simple command-line tool to merge multiple PDF
files from a specified folder into a single output file using Python
and PyPDF2.
The script (pdf_merger.py) scans a given folder, detects all valid PDF
files, and merges them in sorted order into one consolidated PDF file.
- Create a folder named
samplesor any name you like. - Place all the PDF files you want to merge inside the
samplesfolder. - Make sure all files have the
.pdfextension and are not hidden or temporary.
Install required packages using pip:
pip install PyPDF2- Ignores temporary or hidden files (like
~$example.pdf). - Overwrites existing output file if the same name is chosen.
- Ensure PDFs are not password-protected before merging.