This is a simple GUI application built with KivyMD that allows users to convert PDF files to text. The application provides an intuitive interface for selecting a PDF file and converting its contents to a text file.
- User-friendly graphical interface
- File selection using a built-in file manager
- Conversion of PDF files to text
- Error handling for invalid file selections and conversion issues
- Python 3.9
- Conda (for environment management)
- KivyMD
- PyPDF2
We use Conda to manage the project environment. Follow these steps to set up your environment:
-
Make sure you have Conda installed. If not, download and install it from Anaconda or Miniconda.
-
Clone this repository:
git clone https://github.com/yourusername/pdf-to-text-converter.git
- Navigate to the project directory:
cd pdf-to-text-converter
- Create the Conda environment:
conda env create -f environment.yml
- Activate the environment:
conda activate pdf_converter_env
Once you have set up and activated the Conda environment, you don't need to install the packages separately as they are already included in the environment.
- Ensure your Conda environment is activated:
conda activate pdf_converter_env
- Run the application:
python main.py
-
Use the "Select PDF" button to choose a PDF file from your system.
-
Click the "Convert to Text" button to convert the selected PDF to text.
-
The application will display a success message with the path of the output text file, or an error message if something goes wrong.
- The application uses KivyMD for the graphical user interface.
- File selection is handled by the MDFileManager component.
- PDF conversion is done using the PyPDF2 library.
- The converted text is saved in a new file with the same name as the input PDF, but with a .txt extension.
Contributions, issues, and feature requests are welcome. Feel free to check issues page if you want to contribute.
FrtjoffS