Welcome to the PDFMergerCLI repository! This lightweight Python command-line tool allows you to merge multiple PDF files into a single document effortlessly. Built with the powerful pypdf
library, this script provides a simple interface for users to select their PDF files and create a unified output file with a name of their choice.
For the latest releases, please visit our Releases section.
- Easy to Use: Simple command-line interface.
- Multiple PDF Support: Merge any number of PDF files.
- Custom Output Name: Specify the name for the merged PDF.
- Open Source: Free to use and modify.
- Lightweight: Minimal dependencies, fast performance.
To install PDFMergerCLI, follow these steps:
-
Clone the repository:
git clone https://github.com/dyon1405/PDFMergerCLI.git
-
Navigate to the project directory:
cd PDFMergerCLI
-
Install the required packages: Ensure you have Python 3.6 or higher installed. Then, run:
pip install -r requirements.txt
-
Download the latest release: For the latest version, check the Releases section and download the appropriate file.
To use PDFMergerCLI, open your terminal and run the following command:
python pdf_merger.py
The script will prompt you to select the PDF files you wish to merge. Follow the on-screen instructions to complete the process.
-h
,--help
: Show help message and exit.-o OUTPUT
,--output OUTPUT
: Specify the output file name (default ismerged.pdf
).
You can customize the behavior of PDFMergerCLI by modifying the configuration file. This file allows you to set default values for the output name and other preferences.
-
Locate the configuration file: The configuration file is named
config.json
and is located in the root directory of the project. -
Edit the configuration: Open the file in your preferred text editor and modify the settings as needed.
{
"output_name": "merged_document.pdf"
}
Hereβs a quick example of how to merge PDF files using PDFMergerCLI:
-
Run the script:
python pdf_merger.py
-
When prompted, select the PDF files you want to merge. For example:
Select PDF files to merge (comma-separated): file1.pdf, file2.pdf, file3.pdf
-
Specify the output name when prompted:
Enter output file name (default: merged.pdf): my_merged_file.pdf
-
The script will process the files and create the merged PDF.
We welcome contributions! If you want to help improve PDFMergerCLI, follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature/YourFeature
- Make your changes and commit them:
git commit -m "Add your message"
- Push to your branch:
git push origin feature/YourFeature
- Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
- pypdf: The library that powers the PDF merging functionality.
- Open Source Community: For their continuous support and contributions.
For any issues or feature requests, please open an issue in the GitHub repository. We appreciate your interest in PDFMergerCLI! Don't forget to check the Releases section for updates and new features.