PDFusion is a simple and powerful tool for merging multiple PDF files into a single document. This software traverses through a specified directory, collects all PDF files, and merges them into one cohesive file, making it easier to manage and share your PDF documents.
- Automatically scans and collects PDF files from a specified directory.
- Merges PDFs in alphabetical order.
- Outputs a single merged PDF document.
- Python 3.6 or higher
- PyPDF2
-
Clone the repository:
git clone https://github.com/yourusername/PDFusion.git cd PDFusion
-
Install the required dependencies:
pip install -r requirements.txt
-
Create a standalone executable (optional): If you want to create a standalone executable, you can use PyInstaller:
pip install pyinstaller pyinstaller --onefile PDFusion.py
-
Run the script:
python PDFusion.py <input_directory> <output_file>
Replace
<input_directory>
with the path to the directory containing the PDF files you want to merge, and<output_file>
with the desired name for the merged PDF.Example:
python PDFusion.py /path/to/pdf_directory output.pdf
Feel free to add the binary file into you `/usr/local/bin` to use it anywhere in terminal.
-
Navigate to the directory containing the executable:
cd dist
-
Run the executable:
./PDFusion <input_directory> <output_file>
Replace
<input_directory>
with the path to the directory containing the PDF files you want to merge, and<output_file>
with the desired name for the merged PDF.Example:
./PDFusion /path/to/pdf_directory output.pdf
- Scale this tool to merge more file formats
- Make it pretty
We welcome contributions! Please fork the repository and submit your pull requests.
This project is licensed under the GPL License.
For any inquiries, please contact [email protected].