/My-PDF2Text-Convertor

A simple PDF to Text Extractor Flask app

Primary LanguagePython

PDF to Text Converter

A Python Flask app that converts a PDF to a text file. This small project is part of my Python learning journey.

Features

  • Upload a PDF file
  • Extract the text from the PDF file
  • Save the extracted text to a new file
  • Download the text file

Dependencies

  • Flask
  • PyPDF2

Usage

  1. Run the app using python app.py
  2. Navigate to http://localhost:5000 in your web browser
  3. Upload a PDF file
  4. The text from the PDF will be extracted and saved to a file called 'output.txt'
  5. Click the 'Download' button to download the 'output.txt' file

Error Handling

In the event of an error, an error template will be rendered with the specific error message.