/PDF-to-text

This Python script utilizes the PyPDF2 library to convert PDF documents into plain text.

Primary LanguagePythonMIT LicenseMIT

PDF to Text Converter

This Python script utilizes the PyPDF2 library to convert PDF documents into plain text. It opens a specified PDF file, extracts text from each page, and saves the extracted text to a text file. The output text file can be customized to your desired location.

Usage

  1. Replace 'your desired path for input.pdf' with the path to the PDF file you want to convert.
  2. Modify 'your desired path for output.txt' to specify the location and name of the text file where the extracted text will be saved.
  3. Run the script to extract text from the PDF and save it to the specified text file.

Example

If you run the script with the provided settings, the extracted text will be saved to a file named 'output.txt' in the same directory as the script.

Enjoy converting PDFs to text effortlessly!

For more details and usage examples, refer to the code provided in this repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Feel free to modify the description to fit your preferences and provide any additional information or instructions you find relevant.