Now I’m trying to extract data from PDF.
but I’m getting Deprecation Error.
`import PyPDF2
pdf_file = open('cr95.pdf', 'rb')
pdf_reader = PyPDF2.PdfFileReader(pdf_file)
text = ''
for page_num in range(pdf_reader.numPages):
page = pdf_reader.getPage(page_num)
text += page.extractText()
pdf_file.close()
print(text)
I’m going to get a list of MBA from PDF.
I’m going to get a list of names from pdf.
New contributor
Ray Diamond is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.