Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pdfreader.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# import the modules
import sys
import pyttsx3
import PyPDF2

# setting the path
path = sys.argv[1]

#files = open(path,'r')

#matter = files.read()
#print (matter)

# open the file to read
pdfFileObj = open(path, 'rb')
pdfReader = PyPDF2.PdfFileReader(pdfFileObj)
a=pdfReader.numPages
Expand All @@ -33,10 +36,11 @@ def read(page):

# The main code
while(x):
# go to specific page
page = input("Enter the page number to read :")

read(page)
c=int(input("Do you want to continue? (1)Yess (2)No"))
c=int(input("Do you want to continue? (1)Yes (2)No"))
if(c==2):
x=0
print("Thank you")
Expand Down