Skip to content

FritjoffS/pdf_to_text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF to Text Converter

Description

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.

Features

  • 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

Requirements

  • Python 3.9
  • Conda (for environment management)
  • KivyMD
  • PyPDF2

Environment Setup

We use Conda to manage the project environment. Follow these steps to set up your environment:

  1. Make sure you have Conda installed. If not, download and install it from Anaconda or Miniconda.

  2. Clone this repository:

git clone https://github.com/yourusername/pdf-to-text-converter.git

  1. Navigate to the project directory:

cd pdf-to-text-converter

  1. Create the Conda environment:

conda env create -f environment.yml

  1. Activate the environment:

conda activate pdf_converter_env

Installation

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.

Usage

  1. Ensure your Conda environment is activated:

conda activate pdf_converter_env

  1. Run the application:

python main.py

  1. Use the "Select PDF" button to choose a PDF file from your system.

  2. Click the "Convert to Text" button to convert the selected PDF to text.

  3. The application will display a success message with the path of the output text file, or an error message if something goes wrong.

How it works

  1. The application uses KivyMD for the graphical user interface.
  2. File selection is handled by the MDFileManager component.
  3. PDF conversion is done using the PyPDF2 library.
  4. The converted text is saved in a new file with the same name as the input PDF, but with a .txt extension.

Contributing

Contributions, issues, and feature requests are welcome. Feel free to check issues page if you want to contribute.

License

MIT

Author

FrtjoffS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages