A simple Python tool to merge multiple PDF files in a given directory into a single PDF file.
Ensure you have the following installed on your system:
- Python 3.x
- PyPDF2 module. If not installed, run:
pip install pypdf2
-
Clone this repository:
git clone https://github.com/AlteredAdmin/PDF-Merger
-
Navigate to the directory:
cd [Directory Name]
-
Run the script:
python PDFMerger.py
-
Enter the path of the folder containing the PDFs you wish to merge.
-
The program will list all the PDF files found in the directory.
-
Specify a name for the resulting merged PDF file. If you do not provide a
.pdf
extension, the program will append it for you. -
The tool will merge all the PDFs and save the resulting file in an 'Output' directory located within the source directory.
-
After the process is complete, the merged PDF will automatically open.
- If any PDF files fail to merge, the tool will notify you and move on to the next file.
- If the 'Output' directory does not exist, the tool will create one.
If you found this helpful, please consider:
- Buymeacoffee: Link