Welcome to the PDF Merger Script, a simple yet efficient Python program designed to combine multiple PDF files in the current directory into a single output file. This script automatically detects all PDF files and merges them, streamlining your workflow.
- PyPDF2
- A robust PDF library in Python that provides functionalities to manipulate PDF files, including merging, splitting, and extracting content. It is easy to integrate and highly efficient for PDF-related tasks.
- Automated PDF Detection
- This script scans the current working directory and detects all PDF files automatically, eliminating the need for manual file input.
- Single Output
- After merging, the script generates a single output PDF (
combined.pdf), keeping your workspace clean and organized.
- After merging, the script generates a single output PDF (
-
Clone the repository:
git clone https://github.com/yourusername/pdf-merger-script.git
-
Navigate to the project directory:
cd pdf-merger-script -
Install dependencies:
pip install PyPDF2
-
Run the script:
python3 pdfmerger.py
-
Place the PDFs:
- Move all the PDF files you wish to merge into the same folder where the script is located.
-
Run the Script:
- Simply execute the script using the provided command. The script will automatically merge all PDFs in the current folder into a single file named
combined.pdf.
- Simply execute the script using the provided command. The script will automatically merge all PDFs in the current folder into a single file named
-
Check Output:
- The merged PDF,
combined.pdf, will be saved in the same folder where the script was executed.
- The merged PDF,
The final output will be a single PDF file, combining all the detected PDF files in the folder.
combined.pdf