A web application built with Flask that allows users to convert files between different formats, including PDF to Word, Word to PDF, and Image to PDF. This application supports multiple languages, including Arabic and Kurdish.
-
Multiple Conversion Types:
- PDF to Word
- Word to PDF
- Image (JPG, JPEG, PNG) to PDF
-
User-Friendly Interface:
- Responsive design that works on various screen sizes
- Tabbed interface for easy selection of conversion type
- File type validation to prevent incorrect uploads
-
Language Support:
- Handles various languages, including Arabic
-
Secure File Handling:
- Secure filename generation
- File size limit to prevent large uploads
- Python 3.x
- Flask
- Flask-WTF for form handling
- pdf2docx for PDF to Word conversion
- python-docx2pdf for Word to PDF conversion
- Pillow for image processing
- Bootstrap 5 for frontend design
-
Clone the repository:
git clone https://github.com/yourusername/multi-format-file-converter.git cd multi-format-file-converter
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Run the application:
python app.py
-
Open a web browser and navigate to
http://127.0.0.1:5000/
to use the application.
- Select the desired conversion type by clicking on the appropriate tab.
- Click the "Choose File" button to select the file you want to convert.
- Click the "Convert" button to start the conversion process.
- Once the conversion is complete, the converted file will be automatically downloaded.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- pdf2docx for PDF to Word conversion
- python-docx2pdf for Word to PDF conversion
- Pillow for image processing
- Bootstrap for frontend design