Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import PyPDF2
- path="C:\UsersUserDownloadsWPy64-3720soln.pdf"
- text="C:\UsersUserDownloadsWPy64-3720Soln.text"
- pdf_file = open(path, 'rb')
- text =""
- read_pdf = PyPDF2.PdfFileReader(pdf_file)
- c = read_pdf.numPages
- for i in range(c):
- page = read_pdf.getPage(i)
- text+=(page.extractText())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement