I am trying to extract text from a PDF file using Python. My main goal is I am trying to create a program that reads a bank statement and extracts its text to update an exce
import PyPDF2 pdf-file = open('January2019.pdf', 'rb') pdfReader = PyPDF2.PdfFileReader(pdf-file) count = pdfReader.numPages for i in range(count): page = pdfReader.getPage(i) print(page.extractText())