Skip to content

AitijhyaCoded/PDF-Merger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“„ PDF Merger using Python (PyPDF2)

πŸ”— 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.


βœ… How it works

  1. Clone this repository to your local machine.
  2. Add all the PDF files you want to merge into the same directory as the Python script.
  3. Run the script.
  4. The program will ask you to enter the PDF filenames you want to merge (in order).
  5. It will generate a merged file named merged.pdf.

πŸ› οΈ Requirements

  • Python 3.x
  • PyPDF2

To install PyPDF2, run:

pip install PyPDF2

πŸ“₯ Clone the Repository

Create a folder named pdf-merger and run the following:

git clone https://github.com/AitijhyaCoded/PDF-Merger.git
cd pdf-merger

▢️ Run the Script

Make sure all your PDF files are in the same folder as pdfmerger.py. Then run:

python pdfmerger.py

When prompted, enter the filenames (with .pdf extension), separated by space or newline. Example:

file1.pdf file2.pdf file3.pdf

The script will merge the files in the order you entered and save the result as merged.pdf.


πŸ™‹β€β™‚οΈ Author

Made by Aitijhya Roy at:

https://github.com/AitijhyaCoded

Let me know if you want a GUI version or drag-and-drop support added too!


About

Merge your PDFs effortlessly with a simple Python script powered by PyPDF2!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages