π Merge your PDFs effortlessly with a simple Python script powered by PyPDF2.
This is a simple command-line tool that merges multiple PDF files into a single file using Python's PyPDF2 library.
- Clone this repository to your local machine.
- Add all the PDF files you want to merge into the same directory as the Python script.
- Run the script.
- The program will ask you to enter the PDF filenames you want to merge (in order).
- It will generate a merged file named
merged.pdf.
- Python 3.x
- PyPDF2
To install PyPDF2, run:
pip install PyPDF2Create a folder named pdf-merger and run the following:
git clone https://github.com/AitijhyaCoded/PDF-Merger.git
cd pdf-mergerMake sure all your PDF files are in the same folder as pdfmerger.py. Then run:
python pdfmerger.pyWhen prompted, enter the filenames (with .pdf extension), separated by space or newline. Example:
file1.pdf file2.pdf file3.pdfThe script will merge the files in the order you entered and save the result as merged.pdf.
Made by Aitijhya Roy at:
https://github.com/AitijhyaCodedLet me know if you want a GUI version or drag-and-drop support added too!