A Python-based GUI application for merging multiple Word documents (.docx files) into a single document. Features drag-and-drop functionality for easy file management.
- Drag-and-Drop Interface: Easily add files by dragging and dropping them into the application
- Word Document Merging: Combine multiple .docx files into a single document
- File Management: Remove individual files or clear all files from the list
- User-Friendly: Simple and intuitive graphical interface
The application provides a clean interface where you can:
- Drag and drop .docx files into the list
- Combine documents into a single Word file
- Manage your file list
- Python 3.6 or higher
git clone https://github.com/yourusername/documentMerge.git
cd documentMergepip install -r requirements.txtpython merger.py-
Launch the Application
- Run
python merger.pyfrom the project directory
- Run
-
Add Files
- Drag and drop .docx files into the application window
- Files will appear in the list below
-
Combine Documents
- Click "Combine to Word" to merge all files
- Choose a save location for the combined document
- The merged file will be created and saved
-
Manage Files
- Use "Remove Selected File" to remove individual files from the list
- Use "Clear All Files" to remove all files from the list
The following Python packages are required (see requirements.txt):
python-docx>=1.1.0- For reading and writing Word documentstkinterdnd2>=0.3.0- For drag-and-drop functionalitydocxcompose>=1.3.6- For composing/merging documents
- Operating System: Windows, macOS, or Linux
- Python: 3.6 or higher
-
Drag-and-Drop Not Working
- Ensure you're dragging .docx files only
- Check that the files aren't corrupted or password-protected
-
Import Errors
- Make sure all dependencies are installed:
pip install -r requirements.txt - Verify you're using Python 3.6 or higher
- Make sure all dependencies are installed:
-
File Permission Errors
- Ensure you have write permissions in the directory where you're saving files
- Close any open Word documents before merging
- "No files to combine": Add .docx files to the list before combining
documentMerge/
├── merger.py # Main application file
├── requirements.txt # Python dependencies
└── README.md # This file
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Note: This application is designed for merging Word documents (.docx format). For other file formats, consider converting them to .docx first.