https://github.com/azad77/pdf-to-word-django
This is a simple Django web application that allows users to upload a PDF file, convert it to a Word document, and download the converted file. The app utilizes the `pdfplumber` library for extracting text from PDF files and the `python-docx` library for creating Word documents.
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.3%) to scientific vocabulary
Keywords
Repository
This is a simple Django web application that allows users to upload a PDF file, convert it to a Word document, and download the converted file. The app utilizes the `pdfplumber` library for extracting text from PDF files and the `python-docx` library for creating Word documents.
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
PDF to Word Converter Django App
This is a simple Django web application that allows users to upload a PDF file, convert it to a Word document, and download the converted file. The app utilizes the pdfplumber library for extracting text from PDF files and the python-docx library for creating Word documents.
Features
- Upload a PDF file.
- Extracts text from the PDF using
pdfplumber. - Converts the extracted text into a Word document (
.docxformat). - Allows users to download the converted Word document.
Technologies Used
- Django - A high-level Python web framework.
- pdfplumber - A Python library for extracting text from PDF files.
- python-docx - A Python library for creating and modifying Word documents.
Installation
1. Clone the Repository
Clone this repository to your local machine:
bash
git clone https://github.com/yourusername/pdf-to-word-django.git
cd pdf-to-word-django
2. Set Up Virtual Environment
Create a virtual environment and activate it:
bash
conda create -n pdf_to_word_env python=3.9
conda activate pdf_to_word_env
3. Install Dependencies
Install all the required dependencies:
bash
pip install -r requirements.txt
Make sure to include requirements.txt in your repository, containing the necessary libraries:
text
django==3.2
pdfplumber==0.5.28
python-docx==0.8.11
4. Apply Migrations
Run the database migrations:
bash
python manage.py makemigrations
python manage.py migrate
5. Run the Application Locally
Start the development server:
bash
python manage.py runserver
Visit the app in your browser at http://127.0.0.1:8000/ to test the functionality.
Usage
- Navigate to the home page of the app.
- Upload a PDF file that you want to convert.
- Click the "Convert" button.
- Once the conversion is complete, the Word document will be available for download.
Deployment
This application can be deployed on platforms such as Render or Railway. For deployment instructions, please refer to the respective platform's documentation.
Contributing
Feel free to fork this repository and submit pull requests. Contributions are welcome!
Steps for Contributing:
- Fork the repository.
- Create a new branch for your feature (
git checkout -b feature-name). - Commit your changes (
git commit -am 'Add feature'). - Push to the branch (
git push origin feature-name). - Create a new Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Local Testing
Visit the app in your browser at http://127.0.0.1:8000/ to test the functionality.
Owner
- Name: Dr Azad Rasul
- Login: Azad77
- Kind: user
- Company: Soran University
- Repositories: 4
- Profile: https://github.com/Azad77
As a geographer, I use remote sensing and GIS methods and techniques to study LST, urban environment, earth observation and natural disasters.
GitHub Events
Total
- Watch event: 1
- Push event: 18
- Create event: 1
- Commit comment event: 1
Last Year
- Watch event: 1
- Push event: 18
- Create event: 1
- Commit comment event: 1
Committers
Last synced: about 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| Azad Rasul | a****7@g****m | 19 |
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v4 composite
- actions/setup-python v3 composite