import pyttsx3
import PyPDF2
book=open('DSAjava.pdf','rb')
pdfReader=PyPDF2.PdfFileReader(book)
pages=pdfReader.numPages
print(pages)
speaker=pyttsx3.init()
page=pdfReader.getPage(232)
text=page.extractText()
speaker.say(text)
speaker.runAndWait()
