This Python script automates the merging of PDF files in subfolders of a selected directory. It generates a single combined PDF per subfolder and removes the original files automatically. Ideal for organizing and simplifying large collections of PDFs.
- Merges all PDFs in each subfolder into a single file named
combined.pdf. - Automatically deletes the original PDFs after merging.
- Simple and user-friendly graphical interface using Tkinter.
- Fast and reliable processing of PDF files.
-
Clone this repository to your local machine:
git clone https://github.com/jenriquecdev/PDF-Merger-By-Folder.git
-
Navigate to the project directory: cd PDF-Merger-By-Folder
-
Run the script: python pdf_merger.py
-
A graphical window will appear:
Click "Select Folder" to choose the main directory where your PDF files are stored. Click "Combine PDFs" to start the merging process.
-
The script will:
Merge all PDF files in each subfolder into a single combined.pdf. Remove the original PDFs after merging. Notify you when the process is complete.
Example. Imagine you have the following directory structure:
MainFolder/ │ ├── Subfolder1/ │ ├── file1.pdf │ ├── file2.pdf │ ├── Subfolder2/ │ ├── document1.pdf │ ├── document2.pdf
After running the script:
MainFolder/ │ ├── Subfolder1/ │ ├── combined.pdf │ ├── Subfolder2/ │ ├── combined.pdf
- This project is licensed under the MIT License.
- For more details, see the LICENSE file included in this repository.
-
Contributions are highly encouraged and appreciated!
-
To contribute:
- Fork this repository to your GitHub account.
- Create a new branch for your changes:
git checkout -b feature-name
- Make your changes and commit them:
git commit -m "Describe your changes here" - Push the branch to your fork:
git push origin feature-name
- Open a Pull Request to propose your changes.
-
This project was developed by Enrique Caicedo.
-
Connect with me on GitHub: jenriquecdev.