The PDF Speaker Program is a Python script that allows you to interact with PDF files in different ways. It provides several options, including reading specific pages, navigating through pages, and breaking the program. This README will guide you through the features and how to use them effectively.
-
Show Index: Displays an index of the available options. While not always accurate, it provides a quick reference for the available functionalities.
-
Read Specific Page: Allows you to read the content of a single specified page within the PDF.
-
Start from Specific Page to Last Page: Reads the content starting from a specific page and continues reading until the last page of the PDF.
-
Exit Program: Terminates the PDF Speaker Program.
- Clone or download the repository to your local machine.
$ git clone https://github.com/suryabisht00/pdf_to_speak.git
- Install the required Python dependencies.
$ cd pdf_to_speak
$ pip install -r requirements.txt
This program uses the following libraries:
-
PyPDF2
for working with PDF files. -
Run the program:
$ python3 audiobook.py
you will be presented with the following options:
- Show Index: Display a simple index of the available options.
- Read Specific Page: Enter the page number you want to read. The program will display the text content of that page.
- Start from Specific Page to Last Page: Enter the page number you want to start reading from. The program will read the content from that page to the last page.
- Exit Program: Terminate the program.
Follow the on-screen prompts and provide the required input when prompted.
- The accuracy of text extraction from PDFs may vary based on the quality and formatting of the PDF. Complex layouts may lead to less accurate text extraction.
- The program uses the
PyPDF2
library for reading PDFs. Be aware that certain PDF features may not be supported or extracted accurately.
Contributions to this project are welcome! Feel free to fork the repository, make improvements, and submit a pull request.
This project is licensed under the MIT License.
Feel free to modify and expand this template according to your program's structure and additional details you want to include.