import PyPDF2 pdfFile = open('file.pdf', 'rb') pdfReader = PyPDF2.PdfFileReader(pdfFile) pageObj = pdfReader.getPage(i) page = pageObj.extractText()
page_num = pdfReader.getNumPages()
Last updated 2 years ago